rhughes pushed to gimp (master). "Update the screenshot shown in the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Mar 30 16:42:29 UTC 2015
>From f074da930d194b1b86c55f73f0f5d29986d903ce Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Mon, 30 Mar 2015 17:42:13 +0100
Subject: Update the screenshot shown in the software center
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 <rhughes at redhat.com> - 2:2.8.14-1.1
+- Use better AppData screenshots
+
* Tue Aug 26 2014 Nils Philippsen <nils at redhat.com> - 2:2.8.14-1
- version 2.8.14
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/gimp.git/commit/?h=master&id=f074da930d194b1b86c55f73f0f5d29986d903ce
More information about the scm-commits
mailing list