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

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


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


diff --git a/escape.spec b/escape.spec
index 50a8c8b..f5c71f7 100644
--- a/escape.spec
+++ b/escape.spec
@@ -1,6 +1,6 @@
 Name:		escape
 Version:	200912250
-Release:	9%{?dist}
+Release:	10%{?dist}
 Summary:	Extensible block-pushing puzzle game
 
 Group:		Amusements/Games
@@ -73,6 +73,42 @@ desktop-file-install \
 	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
 	%{SOURCE1}
 
+# 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> -->
+<!--
+EmailAddress: tom7 at cs.cmu.edu
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">escape.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>solve the puzzle to find the exit and escape</summary>
+  <description>
+    <p>
+      Escape is a puzzle game that relies less on reflexes and more on
+      solving the puzzle.
+      The player has to move blocks and detonate bombs and other devices in a
+      certain sequence to be able to solve the puzzle, and escape the maze.
+      It features many levels of varying difficulty.
+    </p>
+  </description>
+  <url type="homepage">http://escape.spacebar.org/</url>
+  <screenshots>
+    <screenshot type="default">http://escape.spacebar.org/images/california-roll-screenshot.png</screenshot>
+    <screenshot>http://escape.spacebar.org/images/buttonblocker-screenshot.png</screenshot>
+    <screenshot>http://escape.spacebar.org/images/mainmenu-screenshot.png</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %post
 touch --no-create %{_datadir}/icons/hicolor
@@ -97,10 +133,14 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/%{name}
 %{_datadir}/%{name}
 %{_datadir}/icons/hicolor/32x32/apps/%{name}.png
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*.desktop
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 200912250-10
+- Add an AppData file for the software center
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 200912250-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list