notting pushed to gnucash (f21). "Make appstream stuff only fire if supported by current appstream code."
notifications at fedoraproject.org
notifications at fedoraproject.org
Wed Apr 1 02:23:32 UTC 2015
>From 5e46cd4dd94d93e7cb983e13038a604910a6fe26 Mon Sep 17 00:00:00 2001
From: Bill Nottingham <notting at splat.cc>
Date: Tue, 31 Mar 2015 22:00:34 -0400
Subject: Make appstream stuff only fire if supported by current appstream
code.
diff --git a/gnucash.spec b/gnucash.spec
index abede91..c32f405 100644
--- a/gnucash.spec
+++ b/gnucash.spec
@@ -67,9 +67,10 @@ make install DESTDIR=$RPM_BUILD_ROOT
#
# See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
#
-appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/gnucash.appdata.xml \
- https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnucash/a.png
-
+if appstream-util --help | grep -q replace-screenshots ; then
+ appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/gnucash.appdata.xml \
+ https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnucash/a.png
+fi
%find_lang %{name}
# vfolder desktop file install stuff
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/gnucash.git/commit/?h=f21&id=5e46cd4dd94d93e7cb983e13038a604910a6fe26
More information about the scm-commits
mailing list