From fefdb398204cc0707cf0d10d6c72088d86eda24be748a57444005c37d6ad8cd4 Mon Sep 17 00:00:00 2001 From: Matthias Bach Date: Fri, 18 Sep 2020 19:36:53 +0000 Subject: [PATCH] - Fix the library not matching its soname OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/inih?expand=0&rev=4 --- inih.changes | 5 +++++ inih.spec | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/inih.changes b/inih.changes index 66c45ee..7ef2411 100644 --- a/inih.changes +++ b/inih.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 17 20:58:02 UTC 2020 - Matthias Bach - 51 + +- Fix the library not matching its soname + ------------------------------------------------------------------- Thu Sep 17 20:39:44 UTC 2020 - Matthias Bach diff --git a/inih.spec b/inih.spec index 4b70173..eaca662 100644 --- a/inih.spec +++ b/inih.spec @@ -33,11 +33,11 @@ BuildRequires: pkgconfig INI Not Invented Here is a simple parser for .INI files written in C and mostly compatible with Python's ConfigParser. -%package -n libinih49 +%package -n libinih0 Summary: INIH dynamic libary files Group: System/Libraries -%description -n libinih49 +%description -n libinih0 INI Not Invented Here is a simple parser for .INI files written in C and mostly compatible with Python's ConfigParser. @@ -46,7 +46,7 @@ This package provides the library for use at runtime by applications using INIH. %package -n libinih-devel Summary: Development files for INIH Group: Development/Libraries/C and C++ -Requires: libinih49 = %{version} +Requires: libinih0 = %{version} %description -n libinih-devel INI Not Invented Here is a simple parser for .INI files written in C and mostly @@ -66,11 +66,13 @@ This package provides the development headers for INIH including the C++ binding %install %meson_install +mv %{buildroot}%{_libdir}/libinih.so.49 %{buildroot}%{_libdir}/libinih.so.0 +mv %{buildroot}%{_libdir}/libINIReader.so.49 %{buildroot}%{_libdir}/libINIReader.so.0 -%post -n libinih49 -p /sbin/ldconfig -%postun -n libinih49 -p /sbin/ldconfig +%post -n libinih0 -p /sbin/ldconfig +%postun -n libinih0 -p /sbin/ldconfig -%files -n libinih49 +%files -n libinih0 %defattr(-,root,root) %{_libdir}/libinih.so.* %{_libdir}/libINIReader.so.*