From 043bbfb25c7f390a536ed42543bc0a66aedaf711 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Sun, 28 Jul 2019 23:06:48 -0500 Subject: [PATCH] internal version used for soname too --- exiv2.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exiv2.spec b/exiv2.spec index 207ac32..e921470 100644 --- a/exiv2.spec +++ b/exiv2.spec @@ -4,6 +4,7 @@ Summary: Exif and Iptc metadata manipulation library Name: exiv2 Version: 0.27.2 +%global internal_ver %{version}.2 Release: 0.2.%{beta}%{?dist} License: GPLv2+ @@ -100,7 +101,7 @@ rm -fv %{buildroot}%{_libdir}/libexiv2.la %check export PKG_CONFIG_PATH="%{buildroot}%{_libdir}/pkgconfig${PKG_CONFIG_PATH:+:}${PKG_CONFIG_PATH}" -test "$(pkg-config --modversion exiv2)" = "%{version}.2" +test "$(pkg-config --modversion exiv2)" = "%{internal_ver}" test "$(pkg-config --variable=libdir exiv2)" = "%{_libdir}" test -x %{buildroot}%{_libdir}/libexiv2.so @@ -117,7 +118,7 @@ test -x %{buildroot}%{_libdir}/libexiv2.so %files libs %{_libdir}/libexiv2.so.27* -%{_libdir}/libexiv2.so.%{version} +%{_libdir}/libexiv2.so.%{internal_ver} %files devel %{_includedir}/exiv2/