From f074da930d194b1b86c55f73f0f5d29986d903ce Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 30 Mar 2015 17:42:13 +0100 Subject: [PATCH] Update the screenshot shown in the software center --- gimp.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gimp.spec b/gimp.spec index 7ff9261..fde46cf 100644 --- a/gimp.spec +++ b/gimp.spec @@ -82,7 +82,7 @@ Summary: GNU Image Manipulation Program Name: gimp Epoch: 2 Version: 2.8.14 -Release: %{?prerelprefix}1%{dotprerel}%{dotgitrev}%{?dist} +Release: %{?prerelprefix}1%{dotprerel}%{dotgitrev}%{?dist}.1 # Compute some version related macros. # Ugly, need to get quoting percent signs straight. @@ -135,6 +135,7 @@ BuildRequires: jasper-devel %if %{with lcms} BuildRequires: lcms2-devel >= 2.2 %endif +BuildRequires: libappstream-glib BuildRequires: libexif-devel >= 0.6.15 BuildRequires: libgnomeui-devel >= 2.10.0 %if %{with gudev} @@ -415,6 +416,16 @@ rm -rf %{buildroot} make DESTDIR=%{buildroot} install install -D -m0644 macros.gimp %{buildroot}%{_rpmconfigdir}/macros.d/macros.gimp +# 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/gimp.appdata.xml \ + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gimp/a.png \ + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gimp/b.png + # remove rpaths find %buildroot -type f -print0 | xargs -0 -L 20 chrpath --delete --keepgoing 2>/dev/null || : @@ -641,6 +652,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %endif %changelog +* Mon Mar 30 2015 Richard Hughes - 2:2.8.14-1.1 +- Use better AppData screenshots + * Tue Aug 26 2014 Nils Philippsen - 2:2.8.14-1 - version 2.8.14