Accepting request 294755 from GNOME:Factory
OBS-URL: https://build.opensuse.org/request/show/294755 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libzypp-plugin-appdata?expand=0&rev=6
This commit is contained in:
commit
a2eb8a8697
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 7 11:42:52 UTC 2015 - dimstar@opensuse.org
|
||||
|
||||
- Move openSUSE-appstream-process to appstream-glib package, as
|
||||
updating one often means a change in the other anyway.
|
||||
- Rename openSUSE-appstream-extra to openSUSE-appdata-extra, to
|
||||
better reflect what content to expect in this package (after the
|
||||
github reorganisation).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 2 13:38:08 UTC 2015 - dimstar@opensuse.org
|
||||
|
||||
|
@ -24,13 +24,10 @@ 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
|
||||
Requires: appstream-glib >= 0.3.6
|
||||
# appdata hook was introduced in libzypp 14.29.4
|
||||
Requires: libzypp >= 14.29.4
|
||||
|
||||
@ -41,22 +38,11 @@ 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
|
||||
%package -n openSUSE-appdata-extra
|
||||
Summary: Additional Appstream Metadata
|
||||
Group: System
|
||||
|
||||
%description -n openSUSE-appstream-extra
|
||||
%description -n openSUSE-appdata-extra
|
||||
This package contains extra appstream metadata to be used by appstream-builder
|
||||
|
||||
%prep
|
||||
@ -65,15 +51,9 @@ This package contains extra appstream metadata to be used by appstream-builder
|
||||
%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 -m 0755 -d %{buildroot}%{_datadir}/appdata-extra
|
||||
cp appdata-extra/*/* %{buildroot}%{_datadir}/appdata-extra/
|
||||
|
||||
# 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})
|
||||
@ -86,12 +66,8 @@ install -Dm 0755 %{S:2} %{buildroot}%{_prefix}/lib/zypp/plugins/appdata/$(basena
|
||||
%dir %{_prefix}/lib/zypp/plugins/appdata/
|
||||
%{_prefix}/lib/zypp/plugins/appdata/InstallAppdata.sh
|
||||
|
||||
%files -n openSUSE-appstream-process
|
||||
%files -n openSUSE-appdata-extra
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/openSUSE-appstream-process
|
||||
|
||||
%files -n openSUSE-appstream-extra
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/appstream-extra/
|
||||
%{_datadir}/appdata-extra/
|
||||
|
||||
%changelog
|
||||
|
@ -1,32 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
SRC=$1
|
||||
DEST=$2
|
||||
|
||||
# appstream-buider should be more quiet while parsing packages
|
||||
export ASB_IS_SELF_TEST=1
|
||||
|
||||
/usr/bin/appstream-builder \
|
||||
--no-net \
|
||||
--enable-hidpi \
|
||||
--include-failed \
|
||||
--temp-dir=/tmp/apb \
|
||||
--cache-dir=/tmp/apb/cache \
|
||||
--origin=appdata \
|
||||
--api-version=0.8 \
|
||||
--basename=appdata \
|
||||
--extra-appdata-dir=/usr/share/appstream-extra/ \
|
||||
--packages-dir=${SRC} \
|
||||
--output-dir=${DEST} \
|
||||
--screenshot-uri=http://static.opensuse.org/screenshots/openSUSE-13.2
|
||||
|
||||
/usr/bin/appstream-util \
|
||||
status-html \
|
||||
${DEST}/appdata.xml.gz \
|
||||
${DEST}/appdata.html
|
||||
|
||||
/usr/bin/appstream-util \
|
||||
status-html \
|
||||
${DEST}/appdata-failed.xml.gz \
|
||||
${DEST}/appdata-failed.html
|
||||
|
Loading…
x
Reference in New Issue
Block a user