Accepting request 592387 from GNOME:Factory
- Update to version 1.0.1+git.20180327: * AsHelper: normalize the repo alias names - Start zypper lr with ZYPP_PLUGIN_APPDATA_FORCE_COLLECT=1 post installation (boo#1009745). - Add relevant Requires(post) to ensure packages are installed in the right order: + appstream-glib >= 0.3.6 + python3-cmdln + python3-createrepo_c + libzypp >= 16.13.1 + zypper OBS-URL: https://build.opensuse.org/request/show/592387 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libzypp-plugin-appdata?expand=0&rev=17
This commit is contained in:
commit
24218b082d
@ -1,4 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/DimStar77/openSUSE-appstream.git</param>
|
||||
<param name="changesrevision">58e1e4e128dfe67484342418afcc61efe6e592bf</param></service></servicedata>
|
||||
<param name="changesrevision">4852b6d6bcdc33e1d8c315657e3ffb8dfbf81410</param></service></servicedata>
|
@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 27 11:26:55 UTC 2018 - dimstar@opensuse.org
|
||||
|
||||
- Update to version 1.0.1+git.20180327:
|
||||
* AsHelper: normalize the repo alias names
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 27 08:27:00 UTC 2018 - dimstar@opensuse.org
|
||||
|
||||
- Start zypper lr with ZYPP_PLUGIN_APPDATA_FORCE_COLLECT=1 post
|
||||
installation (boo#1009745).
|
||||
- Add relevant Requires(post) to ensure packages are installed in
|
||||
the right order:
|
||||
+ appstream-glib >= 0.3.6
|
||||
+ python3-cmdln
|
||||
+ python3-createrepo_c
|
||||
+ libzypp >= 16.13.1
|
||||
+ zypper
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 21 19:15:14 UTC 2018 - dimstar@opensuse.org
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: libzypp-plugin-appdata
|
||||
Version: 1.0.1+git.20180321
|
||||
Version: 1.0.1+git.20180327
|
||||
Release: 0
|
||||
Summary: Extend libzypp to handle AppStream metadata
|
||||
License: MIT AND CC0-1.0
|
||||
@ -30,9 +30,15 @@ Requires: AppStream
|
||||
Requires: appstream-glib >= 0.3.6
|
||||
# appdata hook was introduced in libzypp 14.29.4
|
||||
Requires: libzypp >= 14.29.4
|
||||
Requires: python3-cmdln
|
||||
# AsHelper is a python program with few dependencies
|
||||
Requires: python3-cmdln
|
||||
Requires: python3-createrepo_c
|
||||
Requires(post): appstream-glib >= 0.3.6
|
||||
# libzypp 16.13.1 was the version gaingin support for ZYPP_PLUGIN_APPDATA_FORCE_COLLECT
|
||||
Requires(post): libzypp >= 16.13.1
|
||||
Requires(post): python3-cmdln
|
||||
Requires(post): python3-createrepo_c
|
||||
Requires(post): zypper
|
||||
# This is one way of providing valid appstream metadata to applications (currently the only implemented one)
|
||||
Provides: appstream-provider
|
||||
BuildArch: noarch
|
||||
@ -64,6 +70,17 @@ cp appdata-extra/*/* %{buildroot}%{_datadir}/appdata-extra/
|
||||
install -Dm 0755 InstallAppdata.sh %{buildroot}%{_prefix}/lib/zypp/plugins/appdata/InstallAppdata.sh
|
||||
install -Dm 0755 AsHelper.py %{buildroot}%{_libexecdir}/AsHelper
|
||||
|
||||
%post
|
||||
# On initial installation, we enforce an AppStream refresh
|
||||
# ZYPP_PLUGIN_APPDATA_FORCE_COLLECT=1 instructs zypper to fire off the appdata plugin
|
||||
# which normally would only happen on repo refresh; but for 'non-rolling' products,
|
||||
# the default repos are all static and don't refresh. This would leave software centers
|
||||
# in a unusable state
|
||||
# Addresses https://bugzilla.opensuse.org/show_bug.cgi?id=1009745
|
||||
if [ $1 = 1 ]; then
|
||||
ZYPP_PLUGIN_APPDATA_FORCE_COLLECT=1 zypper -n lr >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
%files
|
||||
# zypp plugin triggering AppData update on repo refresh
|
||||
%dir %{_prefix}/lib/zypp
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9d4a955125b1b5462902b5a50a31203e749c866c4160e42052166f8b91dd77c8
|
||||
size 90984
|
3
openSUSE-appstream-1.0.1+git.20180327.tar.xz
Normal file
3
openSUSE-appstream-1.0.1+git.20180327.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:51903357838e52702e7ba35ed25d7c5ea76f789b539141bb8432a83ab939c91a
|
||||
size 91012
|
Loading…
Reference in New Issue
Block a user