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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:53:56 UTC 2015


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


diff --git a/openarena.spec b/openarena.spec
index 7bb5858..96abad6 100644
--- a/openarena.spec
+++ b/openarena.spec
@@ -1,6 +1,6 @@
 Name:           openarena
 Version:        0.8.8
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Open source first person shooter
 Group:          Amusements/Games
 License:        GPLv2
@@ -49,15 +49,61 @@ cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/pixmaps
 chmod 644 $RPM_BUILD_ROOT%{_datadir}/%{name}/baseoa/*
 desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE4}
 
+# 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> -->
+<application>
+  <id type="desktop">openarena.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Free and open source first-person shooter</summary>
+  <description>
+    <p>
+      OpenArena is a free and open source first-person shooter game based
+      heavily on the Quake III Arena-style deathmatch.
+      Score frags to win the game using a balanced set of weapons each designed
+      for different situations.
+      Guns include a chaingun, rocket launcher, shotgun, and railgun.
+    </p>
+    <p>
+      OpenArena's style of play is very fast and requires skill to be played
+      successfully online.
+      Gameplay modes include Deathmatch, Team Deathmatch, Tournament, Capture
+      the Flag, Elimination, CTF Elimination, Last Man Standing and Double
+      Domination.
+    </p>
+  </description>
+  <url type="homepage">http://www.openarena.ws/</url>
+  <screenshots>
+    <screenshot type="default">http://www.openarena.ws/e107_images/custom/085-1.jpg</screenshot>
+    <screenshot>http://www.openarena.ws/e107_images/custom/085-6.jpg</screenshot>
+    <screenshot>http://www.openarena.ws/e107_images/custom/085-16.jpg</screenshot>
+  </screenshots>
+  <!-- FIXME: change this to an upstream email address for spec updates
+  <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+   -->
+</application>
+EOF
 
 %files
 %doc doc/*
 %{_bindir}/%{name}*
 %{_datadir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/pixmaps/%{name}.png
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.8.8-5
+- Add an AppData file for the software center
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8.8-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list