Dominique Leuenberger
6aafa16631
OBS-URL: https://build.opensuse.org/request/show/259603 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libzypp-plugin-appdata?expand=0&rev=1
75 lines
2.6 KiB
RPMSpec
75 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package gnome-software
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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
|
|
%define gs_plugin_api 7
|
|
Summary: Extend libzypp to handle AppStream metadata
|
|
License: GPL-2.0+
|
|
Group: System/Libraries
|
|
Url: https://wiki.gnome.org/Design/Apps/Software
|
|
Source0: InstallAppdata.sh
|
|
Source10: openSUSE-13.2.xml.gz
|
|
Source11: openSUSE-13.2-icons.tar.gz
|
|
BuildArch: noarch
|
|
BuildRequires: appstream-glib >= 0.2.4
|
|
BuildRequires: fdupes
|
|
# Requires appstream-glib >= 0.2.4 for appstream-util install-basename
|
|
Requires: appstream-glib >= 0.2.4
|
|
# appdata hook was introduced in libzypp 14.29.4
|
|
Requires: libzypp >= 14.29.4
|
|
|
|
%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.
|
|
|
|
%prep
|
|
|
|
%build
|
|
|
|
%install
|
|
# Install AppData zypp plugin - temporarily disabled in favor of static AppStream metadata
|
|
#%%install -Dm 0755 %%{S:1} %%{buildroot}%%{_prefix}/lib/zypp/plugins/appdata/$(basename %%{S:1})
|
|
DESTDIR=%{buildroot} appstream-util install %{S:10} %{S:11}
|
|
# marker, that we do no longer have to be aggressive in cleaning up remaining metadata in pre
|
|
touch %{buildroot}%{_datadir}/app-info/.zypp_plugin-1.0.1
|
|
|
|
# Link the few icons that are installed with different names
|
|
%fdupes %{buildroot}%{_datadir}/app-info/icons
|
|
|
|
%pre
|
|
# In case we come from an old version of the plugin, we ensure to clean out any dynamic cache
|
|
if [ ! -f %{_datadir}/app-info/.zypp_plugin-1.0.1 ]; then
|
|
rm -rf %{_datadir}/app-info/
|
|
fi
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
# zypp plugin triggering AppData update on repo refresh
|
|
#dir %{_prefix}/lib/zypp
|
|
#dir %{_prefix}/lib/zypp/plugins
|
|
#dir %{_prefix}/lib/zypp/plugins/appdata/
|
|
#{_prefix}/lib/zypp/plugins/appdata/InstallAppdata.sh
|
|
%{_datadir}/app-info/
|
|
|
|
%changelog
|