Dominique Leuenberger
5ce3d4f010
validates. OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libzypp-plugin-appdata?expand=0&rev=15
98 lines
3.4 KiB
RPMSpec
98 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package libzypp-plugin-appdata
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX 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
|
|
Summary: Extend libzypp to handle AppStream metadata
|
|
License: MIT
|
|
Group: System/Libraries
|
|
Url: https://wiki.gnome.org/Design/Apps/Software
|
|
Source0: openSUSE-appstream-1.0.tar.xz
|
|
Source1: openSUSE-appstream-process
|
|
Source2: InstallAppdata.sh
|
|
BuildArch: noarch
|
|
BuildRequires: appstream-glib >= 0.2.4
|
|
BuildRequires: fdupes
|
|
# appstream-glib >= 0.3.6 is the first to correctly to appstream-util uninstall in /var/cache
|
|
Requires: appstream-glib > 0.3.5
|
|
# 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.
|
|
|
|
%package -n openSUSE-appstream-process
|
|
Summary: Appstream processor employed by kiwi
|
|
Group: System
|
|
Requires: appstream-glib >= 0.3.5
|
|
# external repository with appstream metadata, to assist packages that don't ship their own (yet)
|
|
Requires: openSUSE-appstream-extra
|
|
|
|
%description -n openSUSE-appstream-process
|
|
A wrapper around appstream-builder, called by kiwi in order to produce AppStream metadata
|
|
for the repositories to be published
|
|
|
|
%package -n openSUSE-appstream-extra
|
|
Summary: Additional Appstream Metadata
|
|
Group: System
|
|
|
|
%description -n openSUSE-appstream-extra
|
|
This package contains extra appstream metadata to be used by appstream-builder
|
|
|
|
%prep
|
|
%setup -q -n openSUSE-appstream-1.0
|
|
|
|
%build
|
|
|
|
%install
|
|
# install the appstream process script to be used by kiwi
|
|
install -d -m 0755 %{_buildroot}%{_bindir}
|
|
install -m 0755 -D %{S:1} %{buildroot}%{_bindir}/$(basename %{S:1})
|
|
# install the additional appstream metadata
|
|
install -m 0755 -d %{buildroot}%{_datadir}/appstream-extra
|
|
for DATA in appdata-extra appstream-extra screenshots-extra
|
|
do
|
|
cp -r ${DATA} %{buildroot}%{_datadir}/appstream-extra/
|
|
done
|
|
|
|
# Install AppData zypp plugin - temporarily disabled in favor of static AppStream metadata
|
|
install -Dm 0755 %{S:2} %{buildroot}%{_prefix}/lib/zypp/plugins/appdata/$(basename %{S:2})
|
|
|
|
%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
|
|
|
|
%files -n openSUSE-appstream-process
|
|
%defattr(-,root,root)
|
|
%{_bindir}/openSUSE-appstream-process
|
|
|
|
%files -n openSUSE-appstream-extra
|
|
%defattr(-,root,root)
|
|
%{_datadir}/appstream-extra/
|
|
|
|
%changelog
|