Fix accidental soname bump

https://gitlab.gnome.org/GNOME/librsvg/issues/402
This commit is contained in:
Kalev Lember 2019-01-09 15:16:33 +01:00
parent 226d7b88c8
commit 0fe753b426
2 changed files with 40 additions and 1 deletions

30
0001-Fix-the-soname.patch Normal file
View File

@ -0,0 +1,30 @@
From 86a75d49c16c234be1ea731f662817dd79b9a88f Mon Sep 17 00:00:00 2001
From: Kalev Lember <klember@redhat.com>
Date: Wed, 9 Jan 2019 15:04:07 +0100
Subject: [PATCH] Fix the soname
Commit 1832e2d accidentally bumped rsvg_lt_age without updating
rsvg_lt_current, which led to the soname accidentally changing from
librsvg-2.so.2 to librsvg-2.so.1.
Fixes: https://gitlab.gnome.org/GNOME/librsvg/issues/402
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 2f99ca4b..8ae364f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,7 +18,7 @@ m4_define([rsvg_version],[rsvg_major_version.rsvg_minor_version.rsvg_micro_versi
# rsvg_lt_current += 1
# rsvg_lt_revision = 0
# rsvg_lt_age = 0
-m4_define([rsvg_lt_current],[47])
+m4_define([rsvg_lt_current],[48])
m4_define([rsvg_lt_revision],[0])
m4_define([rsvg_lt_age],[46])
m4_define([rsvg_lt_version_info],rsvg_lt_current:rsvg_lt_revision:rsvg_lt_age)
--
2.19.1

View File

@ -13,11 +13,16 @@
Name: librsvg2
Summary: An SVG library based on cairo
Version: 2.45.3
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2+
URL: https://wiki.gnome.org/Projects/LibRsvg
Source0: https://download.gnome.org/sources/librsvg/2.45/librsvg-%{version}.tar.xz
# https://gitlab.gnome.org/GNOME/librsvg/issues/402
Patch0: 0001-Fix-the-soname.patch
# for patch0:
BuildRequires: autoconf automake libtool gettext-devel
BuildRequires: chrpath
BuildRequires: gcc
@ -103,6 +108,7 @@ rm -vrf vendor
%endif
%build
autoreconf -fi
%configure --disable-static \
--disable-gtk-doc \
--enable-introspection \
@ -152,6 +158,9 @@ rm -vrf %{buildroot}%{_datadir}/doc
%{_mandir}/man1/rsvg-convert.1*
%changelog
* Wed Jan 09 2019 Kalev Lember <klember@redhat.com> - 2.45.3-2
- Fix accidental soname bump
* Wed Jan 09 2019 Kalev Lember <klember@redhat.com> - 2.45.3-1
- Update to 2.45.3