2014-11-04 09:01:55 +00:00
|
|
|
#
|
2015-01-23 13:54:24 +00:00
|
|
|
# spec file for package libzypp-plugin-appdata
|
2014-11-04 09:01:55 +00:00
|
|
|
#
|
2016-02-24 12:46:32 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-11-04 09:01:55 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libzypp-plugin-appdata
|
|
|
|
Version: 1.0.1
|
|
|
|
Release: 0
|
|
|
|
Summary: Extend libzypp to handle AppStream metadata
|
2014-11-05 15:49:44 +00:00
|
|
|
License: MIT
|
2014-11-04 09:01:55 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
Url: https://wiki.gnome.org/Design/Apps/Software
|
2015-03-28 17:20:44 +00:00
|
|
|
Source0: openSUSE-appstream-1.0.tar.xz
|
2015-01-23 13:54:24 +00:00
|
|
|
Source2: InstallAppdata.sh
|
2014-11-04 09:01:55 +00:00
|
|
|
BuildArch: noarch
|
2015-03-27 15:04:50 +00:00
|
|
|
# appstream-glib >= 0.3.6 is the first to correctly to appstream-util uninstall in /var/cache
|
2015-04-07 11:50:30 +00:00
|
|
|
Requires: appstream-glib >= 0.3.6
|
2014-11-04 09:01:55 +00:00
|
|
|
# appdata hook was introduced in libzypp 14.29.4
|
|
|
|
Requires: libzypp >= 14.29.4
|
2016-02-24 12:46:32 +00:00
|
|
|
# appstreamcli is provided by the AppStream package
|
|
|
|
Requires: AppStream
|
2014-11-04 09:01:55 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
2015-04-07 11:50:30 +00:00
|
|
|
%package -n openSUSE-appdata-extra
|
2015-01-23 13:54:24 +00:00
|
|
|
Summary: Additional Appstream Metadata
|
|
|
|
Group: System
|
|
|
|
|
2015-04-07 11:50:30 +00:00
|
|
|
%description -n openSUSE-appdata-extra
|
2015-01-23 13:54:24 +00:00
|
|
|
This package contains extra appstream metadata to be used by appstream-builder
|
|
|
|
|
2014-11-04 09:01:55 +00:00
|
|
|
%prep
|
2015-01-23 13:54:24 +00:00
|
|
|
%setup -q -n openSUSE-appstream-1.0
|
2014-11-04 09:01:55 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2015-01-23 13:54:24 +00:00
|
|
|
# install the additional appstream metadata
|
2015-04-07 11:50:30 +00:00
|
|
|
install -m 0755 -d %{buildroot}%{_datadir}/appdata-extra
|
|
|
|
cp appdata-extra/*/* %{buildroot}%{_datadir}/appdata-extra/
|
2015-01-23 13:54:24 +00:00
|
|
|
|
2014-11-04 09:01:55 +00:00
|
|
|
# Install AppData zypp plugin - temporarily disabled in favor of static AppStream metadata
|
2015-03-27 15:04:50 +00:00
|
|
|
install -Dm 0755 %{S:2} %{buildroot}%{_prefix}/lib/zypp/plugins/appdata/$(basename %{S:2})
|
2014-11-04 09:01:55 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# zypp plugin triggering AppData update on repo refresh
|
2015-03-27 15:04:50 +00:00
|
|
|
%dir %{_prefix}/lib/zypp
|
|
|
|
%dir %{_prefix}/lib/zypp/plugins
|
|
|
|
%dir %{_prefix}/lib/zypp/plugins/appdata/
|
|
|
|
%{_prefix}/lib/zypp/plugins/appdata/InstallAppdata.sh
|
2014-11-04 09:01:55 +00:00
|
|
|
|
2015-04-07 11:50:30 +00:00
|
|
|
%files -n openSUSE-appdata-extra
|
2015-01-23 13:54:24 +00:00
|
|
|
%defattr(-,root,root)
|
2015-04-07 11:50:30 +00:00
|
|
|
%{_datadir}/appdata-extra/
|
2015-01-23 13:54:24 +00:00
|
|
|
|
2014-11-04 09:01:55 +00:00
|
|
|
%changelog
|