rhughes pushed to gnome-documents (master). "Update the screenshot shown in the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Mar 30 16:42:51 UTC 2015


>From 3298cc01edc4f494a1221c178e09a4a8e87e73d7 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Mon, 30 Mar 2015 17:42:31 +0100
Subject: Update the screenshot shown in the software center


diff --git a/gnome-documents.spec b/gnome-documents.spec
index efc94e7..1713e7c 100644
--- a/gnome-documents.spec
+++ b/gnome-documents.spec
@@ -3,7 +3,7 @@
 
 Name:           gnome-documents
 Version:        3.16.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A document manager application for GNOME
 
 License:        GPLv2+
@@ -29,6 +29,7 @@ BuildRequires:  itstool
 BuildRequires:  inkscape
 BuildRequires:  poppler-utils
 BuildRequires:  docbook-style-xsl
+BuildRequires:  libappstream-glib
 
 Requires:       evince-libs%{?_isa} >= %{evince_version}
 Requires:       gtk3%{?_isa} >= %{gtk3_version}
@@ -70,6 +71,16 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/org.gnome.Documents.desktop
 %find_lang %{name} --with-gnome
 
+# 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/org.gnome.Documents.appdata.xml \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/org.gnome.Documents/a.png \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/org.gnome.Documents/b.png \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/org.gnome.Documents/c.png 
 
 %post
 /sbin/ldconfig
@@ -132,6 +143,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
 %{_datadir}/appdata/org.gnome.Books.appdata.xml
 
 %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/gnome-documents.git/commit/?h=master&id=3298cc01edc4f494a1221c178e09a4a8e87e73d7


More information about the scm-commits mailing list