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

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Mar 30 16:45:44 UTC 2015


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


diff --git a/lyx.spec b/lyx.spec
index 1e12430..365c843 100644
--- a/lyx.spec
+++ b/lyx.spec
@@ -14,7 +14,7 @@ BuildRequires: fontpackages-devel
 Summary: WYSIWYM (What You See Is What You Mean) document processor
 Name:	 lyx
 Version: 2.1.3
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 License: GPLv2+
 Url: 	 http://www.lyx.org/
@@ -60,6 +60,7 @@ BuildRequires: texlive-fonts
 BuildRequires: tex(dvips)
 BuildRequires: tex(latex)
 BuildRequires: zlib-devel
+BuildRequires: libappstream-glib
 
 Requires(post): texlive
 Requires(postun): texlive
@@ -207,6 +208,16 @@ rm -rf %{buildroot}%{_datadir}/lyx/fonts
 install -Dm 0644 -p %{SOURCE20} \
         %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
 
+# 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/lyx.appdata.xml \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/lyx/a.png \
+  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/lyx/b.png 
+
 %find_lang %{name}
 
 # bash completion
@@ -274,6 +285,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
 
 
 %changelog
+* Mon Mar 30 2015 Richard Hughes <rhughes at redhat.com> - 2.1.3-2
+- Use better AppData screenshots
+
 * Thu Feb 12 2015 José Matos <jamatos at fedoraproject.org> - 2.1.3-1
 - update to 2.1.3
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/lyx.git/commit/?h=master&id=092483175c46dbd83e41d195e590c4288fb67971


More information about the scm-commits mailing list