rhughes pushed to amoebax (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:15:37 UTC 2015
>From fc1ce7e8aa7e062e064191e2fd8761e40d305122 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:04:24 +0000
Subject: Add an AppData file for the software center
diff --git a/amoebax.spec b/amoebax.spec
index 7c6bb12..4ace902 100644
--- a/amoebax.spec
+++ b/amoebax.spec
@@ -1,6 +1,6 @@
Name: amoebax
Version: 0.2.1
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Action-Puzzle Game
Group: Amusements/Games
License: GPLv2+ and Free Art
@@ -42,6 +42,44 @@ make %{?_smp_mflags}
%install
%make_install
+# 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: jordi at emma-soft.com
+SentUpstream: 2014-09-17
+-->
+<application>
+ <id type="desktop">amoebax.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>A match-4 action puzzle game</summary>
+ <description>
+ <p>
+ Amoebax is a cute action puzzle game where pairs of amoeba fall down,
+ and when you match 4 colored amoeba in a row or column they disappear.
+ There are 6 levels of difficulty, and also a split-screen mode to battle
+ the amoeba-matching fun with a friend.
+ </p>
+ </description>
+ <url type="homepage">http://www.emma-soft.com/games/amoebax/</url>
+ <screenshots>
+ <screenshot type="default">http://www.emma-soft.com/games/amoebax/screenshots/training.png</screenshot>
+ <screenshot>http://www.emma-soft.com/games/amoebax/screenshots/normal.png</screenshot>
+ </screenshots>
+ <!-- FIXME: change this to an upstream email address for spec updates
+ <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+ -->
+</application>
+EOF
+
rm $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/manual.pdf
# below is the desktop file and icon stuff.
@@ -74,11 +112,15 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man6/%{name}.6.gz
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/*%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.2.1-6
+- Add an AppData file for the software center
+
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/amoebax.git/commit/?h=master&id=fc1ce7e8aa7e062e064191e2fd8761e40d305122
More information about the scm-commits
mailing list