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

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


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


diff --git a/asylum.spec b/asylum.spec
index 33b2588..72ec7ab 100644
--- a/asylum.spec
+++ b/asylum.spec
@@ -1,6 +1,6 @@
 Name:           asylum
 Version:        0.3.2
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Game involving shooting anything that moves & collecting others
 Group:          Amusements/Games
 # For detailed licensing, see the README
@@ -64,6 +64,43 @@ cp -a data/* %{buildroot}%{_datadir}/%{name}
 install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
 desktop-file-install --dir %{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 Ravi Srinivasan <ravishankar.srinivasan at gmail.com> -->
+<!--
+EmailAddress: https://sourceforge.net/u/blotwell/
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">asylum.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>A retro platform style game where you enter the surreal world of a brain</summary>
+  <description>
+    <p>
+      Asylum is a Linux port of the game "Asylum" written originally for the
+      Acorn Archimedes.
+    </p>
+    <p>
+      Enter the surreal world inside a young boy's brain and help destroy
+      malfunctioning brain cells.
+    </p>
+  </description>
+  <url type="homepage">http://sdl-asylum.sourceforge.net</url>
+  <screenshots>
+    <screenshot type="default">http://sourceforge.net/p/sdl-asylum/screenshot/134775.jpg</screenshot>
+    <screenshot>http://sourceforge.net/p/sdl-asylum/screenshot/136451.jpg</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %post
 touch --no-create %{_datadir}/icons/hicolor || :
 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
@@ -79,6 +116,7 @@ fi
 %files
 # Note the game is SETGID games for the hi-scores.
 %{_datadir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %attr(0775,root,games) %dir %{_var}/games/%{name}
 %attr(2755,root,games) %{_bindir}/%{name}
@@ -91,6 +129,9 @@ fi
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.3.2-9
+- Add an AppData file for the software center
+
 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.2-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/asylum.git/commit/?h=master&id=72f9c5c7dc78be8e0eec0cdb2a47709946e4e531


More information about the scm-commits mailing list