rhughes pushed to xzgv (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 17:05:38 UTC 2015
>From 1959a04cda810f71ccc6c7e1bd32f05a8b39e8de Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:47:20 +0000
Subject: Add an AppData file for the software center
diff --git a/xzgv.spec b/xzgv.spec
index ad67a4d..2c1826a 100644
--- a/xzgv.spec
+++ b/xzgv.spec
@@ -1,7 +1,7 @@
Summary: Picture viewer
Name: xzgv
Version: 0.9.1
-Release: 10%{?dist}
+Release: 11%{?dist}
License: GPLv2+
Group: Applications/Multimedia
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
@@ -65,6 +65,43 @@ desktop-file-install --delete-original \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/%{name}.desktop
+# Register as an application to be visible in the software center
+#
+# NOTE: It would be *awesome* if this file was maintained by the upstream
+# project, translated and installed into the right place during `make install`.
+#
+# See http://www.freedesktop.org/software/appstream/docs/ for more details.
+#
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/xzgv/feature-requests/5/
+-->
+<application>
+ <id type="desktop">xzgv.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Simple image viewer</summary>
+ <description>
+ <p>
+ xzgv is a simple image editor, with a focus on controlling all actions
+ using keyboard input.
+ It has a simple, two pane layout, with all the thumbnails of the current
+ directory listed in the left pane, and the image viewed in the main pane.
+ The menu in xzgv can be viewed in a context menu that is shown by
+ right-clicking on the main image pane.
+ This context menu also lists all the keyboard shortcuts if you are new to
+ xzgv and need to know them.
+ </p>
+ </description>
+ <url type="homepage">http://sourceforge.net/projects/xzgv/</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/xzgv/a.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%post
/sbin/install-info %{_infodir}/xzgv.info.gz %{_infodir}/dir || :
touch --no-create %{_datadir}/icons/hicolor || :
@@ -91,10 +128,14 @@ fi
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%{_infodir}/%{name}*
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/48x48/apps/xzgv.xpm
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.9.1-11
+- Add an AppData file for the software center
+
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/xzgv.git/commit/?h=master&id=1959a04cda810f71ccc6c7e1bd32f05a8b39e8de
More information about the scm-commits
mailing list