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

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Mar 30 16:46:50 UTC 2015


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


diff --git a/saoimage.spec b/saoimage.spec
index dfd4b79..2de2588 100644
--- a/saoimage.spec
+++ b/saoimage.spec
@@ -1,6 +1,6 @@
 Name:           saoimage
 Version:        1.35.1
-Release:        18%{?dist}
+Release:        19%{?dist}
 Summary:        Utility for displaying astronomical images
 
 Group:          Amusements/Graphics
@@ -22,6 +22,7 @@ BuildRequires:  libX11-devel
 BuildRequires:  /usr/bin/pdflatex
 BuildRequires:  doxygen-latex
 BuildRequires:  desktop-file-utils
+BuildRequires:  libappstream-glib
 
 %description
 SAOimage (pronounced S-A-0-image) is a utility for displaying astronomical
@@ -84,6 +85,14 @@ desktop-file-install %{SOURCE1}         \
 install -pm 0644 %{SOURCE2} %{buildroot}%{_datadir}/mime/packages
 install -pm 0644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps
 
+# 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/saoimage.appdata.xml \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/saoimage/a.png 
 
 %post
 touch --no-create %{_datadir}/mime/packages &> /dev/null || :
@@ -112,6 +121,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 
 
 %changelog
+* Mon Mar 30 2015 Richard Hughes <rhughes at redhat.com> - 1.35.1-19
+- Use better AppData screenshots
+
 * Thu Oct 02 2014 Rex Dieter <rdieter at fedoraproject.org> 1.35.1-18
 - update mime scriptlets, don't own %%_datadir/share/mime
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/saoimage.git/commit/?h=master&id=7e9040b153d6984421750264f306f5327013f0fd


More information about the scm-commits mailing list