From 0deb09462c40fa26525ee4e7802307fe5b4e1c4d0fd825b595bee7e8f2efc89f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Sat, 4 Oct 2014 11:19:15 +0000 Subject: [PATCH] Accepting request 253902 from GNOME:Next - 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. OBS-URL: https://build.opensuse.org/request/show/253902 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-software?expand=0&rev=28 --- gnome-software.changes | 9 +++++++++ gnome-software.spec | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) 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