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

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Mar 30 16:41:53 UTC 2015


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


diff --git a/evince.spec b/evince.spec
index 2a5a06c..32a5e93 100644
--- a/evince.spec
+++ b/evince.spec
@@ -5,7 +5,7 @@
 
 Name:           evince
 Version:        3.16.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Document viewer
 
 License:        GPLv2+ and GPLv3+ and LGPLv2+ and MIT and Afmparse
@@ -34,6 +34,7 @@ BuildRequires:  adwaita-icon-theme-devel
 BuildRequires:  gnome-desktop3-devel
 # For autoconf.sh
 BuildRequires:  gnome-common >= 2.26
+BuildRequires:  libappstream-glib
 
 # for the nautilus properties page
 BuildRequires: nautilus-devel
@@ -141,6 +142,15 @@ make %{?_smp_mflags} V=1 LIBTOOL=/usr/bin/libtool
 %install
 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/evince.appdata.xml \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/evince/a.png 
+
 desktop-file-install --delete-original \
   --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
   $RPM_BUILD_ROOT%{_datadir}/applications/evince.desktop
@@ -255,6 +265,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null ||:
 %{_libdir}/mozilla/plugins/libevbrowserplugin.so
 
 %changelog
+* Mon Mar 30 2015 Richard Hughes <rhughes at redhat.com> - 3.16.0-2
+- Use better AppData screenshots
+
 * Mon Mar 23 2015 Kalev Lember <kalevlember at gmail.com> - 3.16.0-1
 - Update to 3.16.0
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/evince.git/commit/?h=master&id=5eb3b1d3797057784b179dc1e7330ff2f89d8771


More information about the scm-commits mailing list