rhughes pushed to uqm (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 17:02:59 UTC 2015
>From 0cef078373b4165adffccabc3a1073caeda4022b Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:45:27 +0000
Subject: Add an AppData file for the software center
diff --git a/uqm.spec b/uqm.spec
index 292051b..070bef5 100644
--- a/uqm.spec
+++ b/uqm.spec
@@ -1,6 +1,6 @@
Name: uqm
Version: 0.7.0
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: The Ur-Quan Masters, a port of the classic game Star Control II
Group: Amusements/Games
@@ -79,6 +79,40 @@ install -Dpm 644 uqm-5.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/uqm.png
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
install -p -m 644 %{SOURCE4} %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}
+# 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 Luya Tshimbalanga <luya at fedoraproject.org> -->
+<!--
+BugReportURL: https://bugs.uqm.stack.nl/show_bug.cgi?id=1199
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">uqm.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Classic space adventure game</summary>
+ <description>
+ <p>
+ A port of classic game Star Control II that includes adventure and melee
+ mode with enhancement for modern system.
+ </p>
+ </description>
+ <url type="homepage">http://sc2.sourceforge.net/</url>
+ <screenshots>
+ <screenshot type="default">http://sc2.sourceforge.net/screenshots/meleestep.png</screenshot>
+ <screenshot>http://sc2.sourceforge.net/screenshots/scale_triscan.png</screenshot>
+ <screenshot>http://sc2.sourceforge.net/screenshots/slaveshield.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -91,11 +125,15 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/uqm
%{_prefix}/games/uqm
%{_datadir}/uqm/
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/uqm.png
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.7.0-9
+- Add an AppData file for the software center
+
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.7.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/uqm.git/commit/?h=master&id=0cef078373b4165adffccabc3a1073caeda4022b
More information about the scm-commits
mailing list