rhughes pushed to ghex (master). "Update the screenshot shown in the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Mar 30 16:42:25 UTC 2015


>From e8510351ebaf2b891544a8bfaafa841740f11238 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Mon, 30 Mar 2015 17:42:07 +0100
Subject: Update the screenshot shown in the software center


diff --git a/ghex.spec b/ghex.spec
index be38af8..9a4f1b2 100644
--- a/ghex.spec
+++ b/ghex.spec
@@ -3,7 +3,7 @@
 
 Name:           ghex
 Version:        3.10.1
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Binary editor for GNOME
 
 Group:          Applications/Editors
@@ -16,6 +16,7 @@ BuildRequires:  gettext
 BuildRequires:  desktop-file-utils
 BuildRequires:  intltool
 BuildRequires:  itstool
+BuildRequires:  libappstream-glib
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 
@@ -48,6 +49,15 @@ make %{?_smp_mflags}
 make install DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
 
+# 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/ghex.appdata.xml \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/ghex/a.png 
+
 desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ghex.desktop
 
 %find_lang %{name}-3.0 --all-name --with-gnome
@@ -94,6 +104,9 @@ gtk-update-icon-cache %{_datadir}/icons/HighContrast &>/dev/null || :
 
 
 %changelog
+* Mon Mar 30 2015 Richard Hughes <rhughes at redhat.com> - 3.10.1-4
+- Use better AppData screenshots
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.10.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/ghex.git/commit/?h=master&id=e8510351ebaf2b891544a8bfaafa841740f11238


More information about the scm-commits mailing list