rhughes pushed to stellarium (master). "Update the screenshot shown in the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Mar 30 16:47:08 UTC 2015
>From b1ab9aae99d6df78c2701e686f49bc001bbc71fe Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Mon, 30 Mar 2015 17:44:40 +0100
Subject: Update the screenshot shown in the software center
diff --git a/stellarium.spec b/stellarium.spec
index 184fe7f..72dd605 100644
--- a/stellarium.spec
+++ b/stellarium.spec
@@ -2,7 +2,7 @@
Name: stellarium
Version: 0.13.2
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Photo-realistic nightsky renderer
Group: Amusements/Graphics
@@ -25,6 +25,7 @@ BuildRequires: gettext-devel
BuildRequires: boost-devel
BuildRequires: glib2-devel
BuildRequires: perl-podlators
+BuildRequires: libappstream-glib
Provides: stellarium-doc = %{version}-%{release}
@@ -48,6 +49,15 @@ make VERBOSE=1 %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{_bindir}/install -c -p"
+# 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/stellarium.appdata.xml \
+ https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/stellarium/b.png
+
# Remove unwanted files
rm -f $RPM_BUILD_ROOT%{_datadir}/stellarium/data/*.ttf
rm -f $RPM_BUILD_ROOT%{_datadir}/pixmaps/stellarium.xpm
@@ -72,6 +82,9 @@ cp -p data/stellarium.appdata.xml $RPM_BUILD_ROOT/%{_datadir}/appdata
%{_mandir}/man1/stellarium.1.gz
%changelog
+* Mon Mar 30 2015 Richard Hughes <rhughes at redhat.com> - 0.13.2-3
+- Use better AppData screenshots
+
* Tue Jan 27 2015 Petr Machata <pmachata at redhat.com> - 0.13.2-2
- Rebuild for boost 1.57.0
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/stellarium.git/commit/?h=master&id=b1ab9aae99d6df78c2701e686f49bc001bbc71fe
More information about the scm-commits
mailing list