diff --git a/AppStream.changes b/AppStream.changes index e462ce3..14c513d 100644 --- a/AppStream.changes +++ b/AppStream.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 21 19:17:57 UTC 2016 - fabian@ritter-vogt.de + +- Use a define for the so version and fix -devel requiring the old libappstream3 + ------------------------------------------------------------------- Fri Sep 16 07:45:43 UTC 2016 - alarrosa@suse.com diff --git a/AppStream.spec b/AppStream.spec index a018ab6..01100d3 100644 --- a/AppStream.spec +++ b/AppStream.spec @@ -16,6 +16,8 @@ # +%define libappstream_sover 4 + Name: AppStream Version: 0.10.0 Release: 0 @@ -44,12 +46,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build AppStream-Core makes it easy to access application information from the AppStream database over a nice GObject-based interface. -%package -n libappstream4 +%package -n libappstream%{libappstream_sover} Summary: The main library for AppStream License: GPL-2.0+ and LGPL-2.1+ Group: System/Libraries -%description -n libappstream4 +%description -n libappstream%{libappstream_sover} The main library for AppStream. %package -n libAppstreamQt1 @@ -65,7 +67,7 @@ Summary: Needed include files and libraries for development License: GPL-2.0+ and LGPL-2.1+ Group: Development/Libraries/C and C++ Requires: libAppstreamQt1 = %{version} -Requires: libappstream4 = %{version} +Requires: libappstream%{libappstream_sover} = %{version} %description -n libAppstreamQt-devel This package contains all necessary include files, libraries, @@ -76,7 +78,7 @@ compile and link applications using the Qt bindings for AppStream. Summary: Needed include files and libraries for development License: GPL-2.0+ Group: Development/Libraries/C and C++ -Requires: libappstream3 = %{version} +Requires: libappstream%{libappstream_sover} = %{version} %description devel This package contains all necessary include files, libraries, @@ -121,9 +123,9 @@ SUFFIX="" %find_lang appstream %{name}.lang -%post -n libappstream4 -p /sbin/ldconfig +%post -n libappstream%{libappstream_sover} -p /sbin/ldconfig -%postun -n libappstream4 -p /sbin/ldconfig +%postun -n libappstream%{libappstream_sover} -p /sbin/ldconfig %post -n libAppstreamQt1 -p /sbin/ldconfig @@ -140,7 +142,7 @@ SUFFIX="" #{_datadir}/app-info/categories.xml %{_mandir}/man1/appstreamcli.* -%files -n libappstream4 +%files -n libappstream%{libappstream_sover} %defattr(-,root,root) %doc LICENSE* NEWS %{_libdir}/libappstream.so.*