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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:03:35 UTC 2015


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


diff --git a/warmux.spec b/warmux.spec
index 49ca360..b918e69 100644
--- a/warmux.spec
+++ b/warmux.spec
@@ -1,6 +1,6 @@
 Name:           warmux
 Version:        11.04.1
-Release:        15%{?dist}
+Release:        16%{?dist}
 Summary:        2D turn-based artillery game
 
 Group:          Amusements/Games
@@ -98,6 +98,46 @@ install -p -m 644 %{SOURCE3} %{buildroot}%{_datadir}/warmux/weapon/supertux/supe
 rm -f %{buildroot}%{_datadir}/applications/warmux_files.desktop
 rm -f %{buildroot}%{_datadir}/warmux/.nomedia
 
+# 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 Richard Hughes <richard at hughsie.com> -->
+<!--
+SentUpstream: Dead!
+-->
+<application>
+  <id type="desktop">warmux.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <description>
+    <p>
+      WarMUX is a free and open-source turn-based game and can be played online
+      in public or private mode.
+    </p>
+    <p>
+      Players can play together each one in the commande of a team in a senario
+      that puts free software mascots in a battle using dynamite, grenades,
+      baseball bats, and bazookas.
+    </p>
+  </description>
+  <url type="homepage">http://sourceforge.net/projects/warmux/</url>
+  <screenshots>
+    <screenshot type="default">http://a.fsdn.com/con/app/proj/warmux.mirror/screenshots/Warmux.jpg</screenshot>
+    <screenshot>http://a.fsdn.com/con/app/proj/warmux.mirror/screenshots/warmux.png</screenshot>
+    <screenshot>http://a.fsdn.com/con/app/proj/warmux.mirror/screenshots/Warmux1.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
+
 %find_lang %{name}
 
 %post
@@ -116,6 +156,7 @@ fi
 %doc AUTHORS COPYING ChangeLog
 %{_bindir}/warmux
 %{_bindir}/warmux-list-games
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/warmux.desktop
 %{_datadir}/icons/hicolor/128x128/apps/warmux.png
 %{_datadir}/pixmaps/warmux*.png
@@ -125,6 +166,9 @@ fi
 %{_datadir}/warmux
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 11.04.1-16
+- Add an AppData file for the software center
+
 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 11.04.1-15
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/warmux.git/commit/?h=master&id=5b986820395541cf265d069c90a7068c36dd1efc


More information about the scm-commits mailing list