From 20f75f24f7df7167dfcc6a0208e9bf33b2bc4249 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 30 Mar 2015 17:42:37 +0100 Subject: [PATCH] Update the screenshot shown in the software center --- gnome-font-viewer.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 - 3.16.0-2 +- Use better AppData screenshots + * Tue Mar 24 2015 Kalev Lember - 3.16.0-1 - Update to 3.16.0