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

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Mar 30 16:40:53 UTC 2015


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


diff --git a/anjuta.spec b/anjuta.spec
index c802e3e..fa174d3 100644
--- a/anjuta.spec
+++ b/anjuta.spec
@@ -3,7 +3,7 @@
 
 Name:           anjuta
 Version:        3.16.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Epoch:          1
 Summary:        GNOME IDE for various programming languages (including C/C++, Python, Vala and JavaScript)
 
@@ -37,6 +37,7 @@ BuildRequires:  gobject-introspection-devel
 BuildRequires:  flex
 BuildRequires:  bison
 BuildRequires:  itstool
+BuildRequires:  libappstream-glib
 
 Requires:       autogen
 Requires:       gdb >= 7.0
@@ -94,6 +95,16 @@ make %{?_smp_mflags}
 make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name "*.la" -delete
 
+# 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/anjuta.appdata.xml \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/anjuta/a.png \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/anjuta/b.png 
+
 # Remove lib64 rpaths
 chrpath --delete $RPM_BUILD_ROOT%{_bindir}/anjuta
 for f in $RPM_BUILD_ROOT%{_libdir}/anjuta/*.so ; do
@@ -179,6 +190,9 @@ fi
 
 
 %changelog
+* Mon Mar 30 2015 Richard Hughes <rhughes at redhat.com> - 1:3.16.0-2
+- Use better AppData screenshots
+
 * Sun Mar 22 2015 Kalev Lember <kalevlember at gmail.com> - 1:3.16.0-1
 - Update to 3.16.0
 - Use license macro for the COPYING file
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list