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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:18:49 UTC 2015


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


diff --git a/bzflag.spec b/bzflag.spec
index 7e7af57..0f00989 100644
--- a/bzflag.spec
+++ b/bzflag.spec
@@ -2,7 +2,7 @@
 Summary: 3D multi-player tank battle game
 Name: bzflag
 Version: 2.4.2
-Release: 11%{?dist}
+Release: 12%{?dist}
 License: LGPLv2
 Group: Amusements/Games
 URL: http://bzflag.org
@@ -80,6 +80,39 @@ sed 's:^Exec=\(.*\)$:Exec=\1-wrapper:g' < %{SOURCE1} > bzflag.desktop
 mkdir -p %{buildroot}%{_datadir}/applications
 desktop-file-install --dir %{buildroot}%{_datadir}/applications bzflag.desktop
 
+# 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 Ravi Srinivasan <ravishankar.srinivasan at gmail.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/bzflag/bugs/601/
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">bzflag.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>An online multiplayer 3D tank battle game</summary>
+  <description>
+    <p>
+      bzflag is a multiplayer tank battle game with "retro" 3D style graphics.
+    </p>
+  </description>
+  <url type="homepage">http://bzflag.org</url>
+  <screenshots>
+    <screenshot type="default">http://bzflag.org/resources/screenshots/dantes_inferno_01.jpg</screenshot>
+    <screenshot>http://bzflag.org/resources/screenshots/aa_bridge_crossing_01.jpg</screenshot>
+    <screenshot>http://bzflag.org/resources/screenshots/pandemonium_01.jpg</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %files
 %defattr(-, root, root, 0755)
 %doc AUTHORS COPYING ChangeLog README README.Linux
@@ -89,6 +122,7 @@ desktop-file-install --dir %{buildroot}%{_datadir}/applications bzflag.desktop
 %{_bindir}/bzfs
 %dir %{_libdir}/bzflag
 %{_libdir}/bzflag/*.so
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/bzflag
 %exclude %{_datadir}/bzflag/maps/*
@@ -101,6 +135,9 @@ desktop-file-install --dir %{buildroot}%{_datadir}/applications bzflag.desktop
 %{_datadir}/bzflag/maps/*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.4.2-12
+- Add an AppData file for the software center
+
 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.4.2-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/bzflag.git/commit/?h=master&id=25a34e825efac5d3c0ae72543c10b157d27f02fc


More information about the scm-commits mailing list