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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:57:10 UTC 2015


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


diff --git a/rafkill.spec b/rafkill.spec
index 0f3a49e..da6c41c 100644
--- a/rafkill.spec
+++ b/rafkill.spec
@@ -1,6 +1,6 @@
 Name:           rafkill
 Version:        1.2.3
-Release:        15%{?dist}
+Release:        16%{?dist}
 Summary:        Top-down shooter with powerups
 Group:          Amusements/Games
 License:        GPLv2
@@ -64,6 +64,40 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
 install -p -m 644 %{SOURCE3} \
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
 
+# 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 Richard Hughes <richard at hughsie.com> -->
+<!--
+EmailAddress: kazzmir at users.sf.net
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">rafkill.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <description>
+    <p>
+      Rafkill is a vertical scrolling shoot-em up game. You can collect powerups
+      during gameplay and you can goto the store with your spaceship and buy
+      powerups or even a complete new ship with the points you've earned sofar.
+    </p>
+  </description>
+  <url type="homepage">http://raptorv2.sourceforge.net/index.php</url>
+  <screenshots>
+    <screenshot type="default">http://raptorv2.sourceforge.net/images/title.png</screenshot>
+    <screenshot>http://raptorv2.sourceforge.net/images/snapshot1.png</screenshot>
+    <screenshot>http://raptorv2.sourceforge.net/images/buy.png</screenshot>
+  </screenshots>
+  <updatecontact>kazzmir at users.sf.net</updatecontact>
+</application>
+EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -88,11 +122,15 @@ fi
 %{_bindir}/%{name}
 %{_datadir}/%{name}
 %{_mandir}/man6/%{name}.6.gz
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.2.3-16
+- Add an AppData file for the software center
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.3-15
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/rafkill.git/commit/?h=master&id=2f890836fca98978a25ec84af9cbd4e436c16b5a


More information about the scm-commits mailing list