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

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


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


diff --git a/pingus.spec b/pingus.spec
index fa9a772..514cad5 100644
--- a/pingus.spec
+++ b/pingus.spec
@@ -1,6 +1,6 @@
 Name:           pingus
 Version:        0.7.6
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        Guide the penguins safely home before they drop of the cliff
 Group:          Amusements/Games
 License:        GPLv2+
@@ -56,6 +56,43 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
 install -p -m 644 %{SOURCE2} \
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/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 Edgar Muniz Berlinck <edgar.vv at gmail.com> -->
+<!--
+EmailAddress: grumbel at gmail.com
+SentUpstream: 2014-09-25
+-->
+<application>
+  <id type="desktop">pingus.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Free version of Lemmings Puzzle Game</summary>
+  <description>
+    <p>
+      Pingus is a Puzzle game where you need to save all your little penguins
+      using the capabilities provided to you in the current level.
+    </p>
+    <p>
+      The basic game idea is to be like Lemmings game.
+      This versions has some other cool
+      stuff like a world map and some very cool secret levels.
+    </p>
+  </description>
+  <url type="homepage">http://pingus.seul.org/</url>
+  <screenshots>
+    <screenshot type="default">http://pingus.seul.org/images/screen_0.7.0-4.jpg</screenshot>
+    <screenshot>http://pingus.seul.org/images/screen_0.7.0-3.jpg</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -80,12 +117,16 @@ fi
 %{_bindir}/%{name}
 %{_bindir}/%{name}.bin
 %{_datadir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/32x32/apps/%{name}.png
 %{_mandir}/man6/%{name}.6*
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.7.6-14
+- Add an AppData file for the software center
+
 * Mon Jan 26 2015 Petr Machata <pmachata at redhat.com> - 0.7.6-13
 - Rebuild for boost 1.57.0
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list