Update the screenshot shown in the software center

This commit is contained in:
Richard Hughes 2015-03-30 17:42:37 +01:00
parent 80e1e018de
commit 20f75f24f7

View File

@ -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@redhat.com> - 3.16.0-2
- Use better AppData screenshots
* Tue Mar 24 2015 Kalev Lember <kalevlember@gmail.com> - 3.16.0-1
- Update to 3.16.0