From c56587c1c046c479416ecf6186a7624a8d623443 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 30 Mar 2015 17:42:25 +0100 Subject: [PATCH] Update the screenshot shown in the software center --- gnome-clocks.spec | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/gnome-clocks.spec b/gnome-clocks.spec index 3a033d6..2a3f880 100644 --- a/gnome-clocks.spec +++ b/gnome-clocks.spec @@ -1,6 +1,6 @@ Name: gnome-clocks Version: 3.16.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Clock application designed for GNOME 3 License: GPLv2+ @@ -18,6 +18,7 @@ BuildRequires: desktop-file-utils glib2-devel itstool BuildRequires: geoclue2-devel BuildRequires: geocode-glib-devel BuildRequires: gsound-devel +BuildRequires: libappstream-glib %description Clock application designed for GNOME 3 @@ -34,6 +35,19 @@ make install DESTDIR=$RPM_BUILD_ROOT desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/org.gnome.clocks.desktop %find_lang gnome-clocks --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.clocks.appdata.xml \ + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/org.gnome.clocks/a.png \ + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/org.gnome.clocks/b.png \ + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/org.gnome.clocks/c.png \ + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/org.gnome.clocks/d.png \ + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/org.gnome.clocks/e.png + %post /bin/touch --no-create %{_datadir}/icons/hicolor %{_datadir}/icons/HighContrast &>/dev/null || : @@ -66,6 +80,9 @@ fi %changelog +* Mon Mar 30 2015 Richard Hughes - 3.16.0-2 +- Use better AppData screenshots + * Mon Mar 23 2015 Yanko Kaneti - 3.16.0-1 - Update to 3.16.0 - Use license macro