kalev pushed to rhythmbox (f22). "Update the screenshot shown in the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Sun Apr 19 10:40:25 UTC 2015


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


diff --git a/rhythmbox.spec b/rhythmbox.spec
index a79715f..c9a4280 100644
--- a/rhythmbox.spec
+++ b/rhythmbox.spec
@@ -5,7 +5,7 @@
 Name: rhythmbox
 Summary: Music Management Application
 Version: 3.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2+ with exceptions and GFDL
 Group: Applications/Multimedia
 URL: http://projects.gnome.org/rhythmbox/
@@ -33,6 +33,7 @@ BuildRequires: intltool
 BuildRequires: itstool
 BuildRequires: json-glib-devel
 BuildRequires: kernel-headers
+BuildRequires: libappstream-glib
 BuildRequires: libdmapsharing-devel >= %{libdmapsharing_version}
 BuildRequires: libgpod-devel
 BuildRequires: libgudev1-devel
@@ -111,6 +112,16 @@ rm -f %{buildroot}%{_libdir}/rhythmbox/plugins/libsample-vala.so \
 # Don't include header files for plugins
 rm -rf %{buildroot}%{_libdir}/rhythmbox/plugins/*/*.h
 
+# 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/rhythmbox.appdata.xml \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/rhythmbox/a.png \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/rhythmbox/b.png 
+
 %post
 /sbin/ldconfig
 update-desktop-database >&/dev/null || :
@@ -186,6 +197,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
 %{_datadir}/gir-1.0/*.gir
 
 %changelog
+* Mon Mar 30 2015 Richard Hughes <rhughes at redhat.com> - 3.2-2
+- Use better AppData screenshots
+
 * Sun Mar 29 2015 Kalev Lember <kalevlember at gmail.com> - 3.2-1
 - Update to 3.2
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/rhythmbox.git/commit/?h=f22&id=4d07e4c085936acfce0b6f27c5c1ff029ecf1d32


More information about the scm-commits mailing list