Update the screenshot shown in the software center

This commit is contained in:
Richard Hughes 2015-03-30 17:42:25 +01:00
parent 03f3bd02cf
commit c56587c1c0

View File

@ -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 <rhughes@redhat.com> - 3.16.0-2
- Use better AppData screenshots
* Mon Mar 23 2015 Yanko Kaneti <yaneti@declera.com> - 3.16.0-1
- Update to 3.16.0
- Use license macro