From 72cd52f687235b28cc510296f0aa99997a30dbc16a6dfe6304ae9f55200b2e13 Mon Sep 17 00:00:00 2001 From: Raymond Wooninck Date: Sun, 7 Feb 2016 21:12:46 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/AppStream?expand=0&rev=11 --- AppStream.spec | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/AppStream.spec b/AppStream.spec index 1bea05b..9e97878 100644 --- a/AppStream.spec +++ b/AppStream.spec @@ -38,17 +38,17 @@ BuildRequires: pkgconfig(packagekit-glib2) BuildRequires: libyaml-devel BuildRequires: pkgconfig(protobuf) BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: libappstream3 %description AppStream-Core makes it easy to access application information from the AppStream database over a nice GObject-based interface. -%package -n libappstream1 +%package -n libappstream3 Summary: The main library for AppStream Group: System/Libraries -Requires: %{name} = %{version} -%description -n libappstream1 +%description -n libappstream3 The main library for AppStream. %package -n libAppstreamQt1 @@ -115,10 +115,16 @@ make %{?_smp_mflags} %find_lang appstream %{name}.lang -%post +%post -n libappstream3 /sbin/ldconfig -%postun +%postun -n libappstream3 +/sbin/ldconfig + +%post -n libAppstreamQt1 +/sbin/ldconfig + +%postun -n libAppstreamQt1 /sbin/ldconfig %files lang -f %{name}.lang @@ -132,7 +138,7 @@ make %{?_smp_mflags} %{_datadir}/app-info/categories.xml %{_mandir}/man1/appstreamcli.* -%files -n libappstream1 +%files -n libappstream3 %defattr(-,root,root) %doc LICENSE* NEWS %{_libdir}/libappstream.so.*