diff --git a/gnome-software.changes b/gnome-software.changes index d740008..0c36b24 100644 --- a/gnome-software.changes +++ b/gnome-software.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sat Oct 4 11:09:19 UTC 2014 - dimstar@opensuse.org + +- Split InstallAppdata.sh in an own package libzypp-plugin-appdata: + other software centers might have to rely on this as well in the + future. +- Add appstream-glib Requires and minimum version for libzypp to + libzypp-plugin-appdata. + ------------------------------------------------------------------- Thu Oct 2 14:37:21 UTC 2014 - dimstar@opensuse.org diff --git a/gnome-software.spec b/gnome-software.spec index 069d889..72ab61b 100644 --- a/gnome-software.spec +++ b/gnome-software.spec @@ -41,11 +41,28 @@ BuildRequires: pkgconfig(libxslt) BuildRequires: pkgconfig(packagekit-glib2) >= 1.0.0 BuildRequires: pkgconfig(sqlite3) BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: libzypp-plugin-appdata %glib2_gsettings_schema_requires %description AppStore like management of Applications for your GNOME Desktop. +%package -n libzypp-plugin-appdata +Version: 1.0 +Release: 0 +Summary: Extend libzypp to handle AppStream metadata +Group: System/Libraries +Requires: appstream-glib >= 0.2.4 +# appdata hook was introduced in libzypp 14.29.4 +Requires: libzypp >= 14.29.4 + +%description -n libzypp-plugin-appdata +This plugin extends libzypp to install AppStream metadata, as extracted from the +repository metadata, onto the file system in order to be picked up by +software centers. + +At this moment, gnome-software is the only known implementation making use of it. + %lang_package %prep %setup -q @@ -102,6 +119,9 @@ install -Dm 0755 %{S:1} %{buildroot}%{_prefix}/lib/zypp/plugins/appdata/$(basena %dir %{_prefix}/lib/zypp %dir %{_prefix}/lib/zypp/plugins %dir %{_prefix}/lib/zypp/plugins/appdata/ + +%files -n libzypp-plugin-appdata +%defattr(-,root,root) %{_prefix}/lib/zypp/plugins/appdata/InstallAppdata.sh %files lang -f %{name}.lang