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

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


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


diff --git a/gnome-font-viewer.spec b/gnome-font-viewer.spec
index aaf2aed..704eeb1 100644
--- a/gnome-font-viewer.spec
+++ b/gnome-font-viewer.spec
@@ -1,7 +1,7 @@
 Name:           gnome-font-viewer
 Version:        3.16.0
 %global         release_version %(echo %{version} | awk -F. '{print $1"."$2}')
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Utility for previewing fonts for GNOME
 
 Group:          Applications/System
@@ -14,6 +14,7 @@ BuildRequires:  gnome-desktop3-devel
 BuildRequires:  gtk3-devel
 BuildRequires:  intltool
 BuildRequires:  desktop-file-utils
+BuildRequires:  libappstream-glib
 
 %description
 Use gnome-font-viewer, the Font Viewer, to preview fonts and display
@@ -31,6 +32,16 @@ make %{?_smp_mflags}
 %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/org.gnome.font-viewer.appdata.xml \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/org.gnome.font-viewer/a.png \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/org.gnome.font-viewer/b.png 
+
 %find_lang %{name} --with-gnome
 
 %check
@@ -54,6 +65,9 @@ update-desktop-database &> /dev/null || :
 
 
 %changelog
+* Mon Mar 30 2015 Richard Hughes <rhughes at redhat.com> - 3.16.0-2
+- Use better AppData screenshots
+
 * Tue Mar 24 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-font-viewer.git/commit/?h=master&id=20f75f24f7df7167dfcc6a0208e9bf33b2bc4249


More information about the scm-commits mailing list