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

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Mar 30 16:41:29 UTC 2015


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


diff --git a/devhelp.spec b/devhelp.spec
index ac4b143..96cce16 100644
--- a/devhelp.spec
+++ b/devhelp.spec
@@ -2,7 +2,7 @@
 
 Name: devhelp
 Version: 3.16.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 Epoch: 1
 License: GPLv2+
 Group: Development/Tools
@@ -19,6 +19,7 @@ BuildRequires: gettext
 BuildRequires: intltool
 BuildRequires: pkgconfig(gtk+-3.0)
 BuildRequires: pkgconfig(webkit2gtk-4.0)
+BuildRequires: libappstream-glib
 
 %description
 Devhelp is an API documentation browser for the GNOME desktop.
@@ -44,6 +45,15 @@ make %{?_smp_mflags} CFLAGS="$CFLAGS -fno-strict-aliasing"
 %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/devhelp.appdata.xml \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/devhelp/a.png 
+
 find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
 
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/devhelp/books
@@ -99,6 +109,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
 %{_libdir}/pkgconfig/*
 
 %changelog
+* Mon Mar 30 2015 Richard Hughes <rhughes at redhat.com> - 1:3.16.0-2
+- Use better AppData screenshots
+
 * Mon Mar 23 2015 Kalev Lember <kalevlember at gmail.com> - 1:3.16.0-1
 - Update to 3.16.0
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list