rhughes pushed to garden (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:40:43 UTC 2015


>From f47ce37f5eb2785b543f2d3efd367f91914630bb Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:31:50 +0000
Subject: Add an AppData file for the software center


diff --git a/garden.spec b/garden.spec
index 9634470..0b5ed9d 100644
--- a/garden.spec
+++ b/garden.spec
@@ -1,6 +1,6 @@
 Name:           garden
 Version:        1.0.8
-Release:        12%{?dist}
+Release:        13%{?dist}
 Summary:        An innovative old-school 2D vertical shoot-em-up
 
 Group:          Amusements/Games
@@ -40,6 +40,46 @@ make %{?_smp_mflags}
 %install
 make install DESTDIR=$RPM_BUILD_ROOT
 
+# 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 Tim Waugh <twaugh at redhat.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/garden/feature-requests/4/
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">garden.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Choose your equipment and fly your ship past the enemies</summary>
+  <description>
+    <p>
+      In garden of coloured lights you must fly as far as you can while enemies
+      attack.
+      You choose how to equip the ship, depending on your strategy.
+    </p>
+    <p>
+      The futuristic landscape scrolls upwards while strange plant-like enemies
+      engage your ship in various ways.
+      There are boss enemies to kill in each stage.
+    </p>
+  </description>
+  <url type="homepage">http://garden.sourceforge.net/</url>
+  <screenshots>
+    <screenshot type="default">http://garden.sourceforge.net/drupal/sites/default/files/images/stage1_1.png</screenshot>
+    <screenshot>http://garden.sourceforge.net/drupal/sites/default/files/images/stage1_2.png</screenshot>
+    <screenshot>http://garden.sourceforge.net/drupal/sites/default/files/images/stage0_0.png</screenshot>
+  </screenshots>
+</application>
+EOF
+
 desktop-file-validate \
 %{buildroot}%{_datadir}/applications/%{name}.desktop
 
@@ -61,9 +101,13 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_bindir}/%{name}
 %{_datadir}/%{name}/
 %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.0.8-13
+- Add an AppData file for the software center
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.8-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/garden.git/commit/?h=master&id=f47ce37f5eb2785b543f2d3efd367f91914630bb


More information about the scm-commits mailing list