rhughes pushed to gnumeric (master). "Update the screenshot shown in the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Mar 30 16:44:37 UTC 2015


>From 6d3db3c489e062e35c66ca8dc640a2be6c7f8e6d Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Mon, 30 Mar 2015 17:43:07 +0100
Subject: Update the screenshot shown in the software center


diff --git a/gnumeric.spec b/gnumeric.spec
index 361f6e6..550048c 100644
--- a/gnumeric.spec
+++ b/gnumeric.spec
@@ -1,7 +1,7 @@
 Name:             gnumeric
 Epoch:            1
 Version:          1.12.20
-Release:          1%{?dist}
+Release:          2%{?dist}
 Summary:          Spreadsheet program for GNOME
 #LGPLv2+:
 #plugins/gda/plugin-gda.c
@@ -26,6 +26,7 @@ BuildRequires:    pygobject3-devel
 BuildRequires:    pygtk2-devel
 BuildRequires:    rarian-compat
 BuildRequires:    zlib-devel
+BuildRequires:    libappstream-glib
 Requires:         hicolor-icon-theme
 Requires(post):   /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
@@ -76,6 +77,15 @@ make %{?_smp_mflags}
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 
+# Update the screenshot shown in the software center
+#
+# NOTE: It would be *awesome* if this file was pushed upstream.
+#
+# See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
+#
+appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/gnumeric.appdata.xml \
+  "https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnumeric/Screenshot from 2013-10-10 14:19:50.png"
+
 %find_lang %{name} --all-name --with-gnome
 
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
@@ -163,6 +173,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 
 %changelog
+* Mon Mar 30 2015 Richard Hughes <rhughes at redhat.com> - 1:1.12.20-2
+- Use better AppData screenshots
+
 * Fri Feb 06 2015 Julian Sikorski <belegdol at fedoraproject.org> - 1:1.12.20-1
 - Updated to 1.12.20
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gnumeric.git/commit/?h=master&id=6d3db3c489e062e35c66ca8dc640a2be6c7f8e6d


More information about the scm-commits mailing list