rhughes pushed to methane (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:51:25 UTC 2015
>From 765857aa13c5771b7a5463d2724448314985ed64 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:38:25 +0000
Subject: Add an AppData file for the software center
diff --git a/methane.spec b/methane.spec
index c0e670a..8b6b6e3 100644
--- a/methane.spec
+++ b/methane.spec
@@ -1,6 +1,6 @@
Name: methane
Version: 1.5.1
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: Super Methane Brothers
Group: Amusements/Games
License: GPLv2+
@@ -60,6 +60,43 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
install -p -m 644 %{SOURCE3} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/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 William Moreno Reyes <williamjmorenor at gmail.com> -->
+<!--
+UpstreamURL: Upstream is dead, private email
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">methane.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Platform Arcade Game similar to Bubble Bubble</summary>
+ <description>
+ <p>
+ Super Methane Brothers is a platform arcade game Puff and Blow each have a
+ Methane Gas Gun which fires a cloud of immobilising gas.
+ If this comes into contact with a bad guy, he will be absorbed into the gas
+ and then float around the screen for a limited time.
+ Bad guys are harmless in this state.
+ Puff and Blow must suck the floating gas clouds into their guns and blast
+ them out against a vertical surface.
+ bThe Bad guys then turn into bonuses which can be collected.
+ </p>
+ </description>
+ <url type="homepage">http://methane.sourceforge.net/</url>
+ <screenshots>
+ <screenshot type="default">http://methane.sourceforge.net/gamepic.gif</screenshot>
+ </screenshots>
+</application>
+EOF
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -83,6 +120,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_datadir}/applications/fedora-%{name}.desktop
%{_datadir}/applications/fedora-%{name}-help.desktop
%else
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-help.desktop
%endif
@@ -91,6 +129,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.5.1-11
+- Add an AppData file for the software center
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/methane.git/commit/?h=master&id=765857aa13c5771b7a5463d2724448314985ed64
More information about the scm-commits
mailing list