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

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


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


diff --git a/funguloids.spec b/funguloids.spec
index 4bedd2b..3329cd8 100644
--- a/funguloids.spec
+++ b/funguloids.spec
@@ -18,7 +18,7 @@
 
 Name:           funguloids
 Version:        1.06
-Release:        11%{?dist}
+Release:        12%{?dist}
 Summary:        Space-Flying-Mushroom-Picking-Simulator game
 License:        zlib
 Group:          Amusements/Games
@@ -122,6 +122,45 @@ cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps
 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man6
 
+# 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 Edgar Muniz Berlinck <edgar.vv at gmail.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/funguloids/support-requests/2/
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">funguloids.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>3D casual game</summary>
+  <description>
+    <p>
+      Those Funny Funguloids! 3d is a casual game where you must travel through
+      various worlds offered by the game and capture all the mushrooms you find.
+      Beware of enemies, they will do anything to make you fail!
+    </p>
+  </description>
+  <url type="homepage">http://funguloids.sourceforge.net</url>
+  <screenshots>
+    <screenshot type="default">http://funguloids.sourceforge.net/shot02.jpg</screenshot>
+    <screenshot>http://funguloids.sourceforge.net/shot01.jpg</screenshot>
+    <screenshot>http://funguloids.sourceforge.net/shot03.jpg</screenshot>
+    <screenshot>http://funguloids.sourceforge.net/shot04.jpg</screenshot>
+    <screenshot>http://funguloids.sourceforge.net/shot06.jpg</screenshot>
+    <screenshot>http://funguloids.sourceforge.net/shot07.jpg</screenshot>
+    <screenshot>http://funguloids.sourceforge.net/shot05.jpg</screenshot>
+    <screenshot>http://funguloids.sourceforge.net/shot08.jpg</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %post
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -140,12 +179,16 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %doc %{_pkgdocdir}
 %{_bindir}/%{name}
 %{_datadir}/%{name}/
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/*/apps/%{name}.png
 %{_mandir}/man6/%{name}.6*
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.06-12
+- Add an AppData file for the software center
+
 * Wed Feb 11 2015 Ralf Corsépius <corsepiu at fedoraproject.org> - 1.06-11
 - Rebuild for boost-1.57.0.
 - Use %%_pkgdocdir instead of %%_maindocdir.
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/funguloids.git/commit/?h=master&id=7cf1acfd36d42f5b68bd641a89f8e258aa695b26


More information about the scm-commits mailing list