rhughes pushed to gucharmap (master). "Update the screenshot shown in the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Mar 30 16:45:09 UTC 2015
>From 49c6512adab4ca22099b5b407b57f1f8f2e190eb Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Mon, 30 Mar 2015 17:43:19 +0100
Subject: Update the screenshot shown in the software center
diff --git a/gucharmap.spec b/gucharmap.spec
index 596be38..63fb6f5 100644
--- a/gucharmap.spec
+++ b/gucharmap.spec
@@ -4,7 +4,7 @@
Name: gucharmap
Version: 3.16.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Unicode character picker and font browser
Group: Applications/System
@@ -22,6 +22,7 @@ BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: itstool
+BuildRequires: libappstream-glib
%description
This program allows you to browse through all the available Unicode
@@ -52,6 +53,16 @@ sed -i -e '/^Requires.private/d' gucharmap-2.90.pc
%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/gucharmap.appdata.xml \
+ https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gucharmap/a.png \
+ https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gucharmap/b.png
+
rm $RPM_BUILD_ROOT/%{_libdir}/*.la
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gucharmap.desktop
@@ -98,6 +109,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%changelog
+* Mon Mar 30 2015 Richard Hughes <rhughes at redhat.com> - 3.16.0-2
+- Use better AppData screenshots
+
* Mon Mar 23 2015 Kalev Lember <kalevlember at gmail.com> - 3.16.0-1
- Update to 3.16.0
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/gucharmap.git/commit/?h=master&id=49c6512adab4ca22099b5b407b57f1f8f2e190eb
More information about the scm-commits
mailing list