rhughes pushed to netpanzer (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:52:48 UTC 2015
>From 09a9ebc9be753a952a5d5547c77a123c4c77f3b4 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:39:21 +0000
Subject: Add an AppData file for the software center
diff --git a/netpanzer.spec b/netpanzer.spec
index e18dc84..86d29c8 100644
--- a/netpanzer.spec
+++ b/netpanzer.spec
@@ -1,6 +1,6 @@
Name: netpanzer
Version: 0.8.4
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: An Online Multiplayer Tactical Warfare Game
Group: Amusements/Games
@@ -86,6 +86,40 @@ desktop-file-install \
--dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
netpanzer.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 William Moreno Reyes <williamjmoreno at gmail.com> -->
+<!--
+EmailAddress: admin at netpanzer.info
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">netpanzer.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Multiplayer war game in real time</summary>
+ <description>
+ <p>
+ Play a on line tactical game over the internet or a LAN, with one vs one
+ option using a direct connect or modem.
+ netPanzer in designed for a fast game mode, without the need of collect
+ resources, any player can play until his last unit is destroyed.
+ </p>
+ </description>
+ <url type="homepage">http://netpanzer.berlios.de</url>
+ <screenshots>
+ <screenshot type="default">http://www.netpanzer.info/public/netpanzer.info/images/netpanzer-game/screenshot63.jpg</screenshot>
+ </screenshots>
+</application>
+EOF
+
%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
@@ -106,11 +140,15 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-)
%doc ChangeLog COPYING README RELNOTES TODO docs/serverhowto.html docs/tipofday.txt
%{_bindir}/netpanzer
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/netpanzer.desktop
%{_datadir}/icons/hicolor/48x48/apps/netpanzer.png
%{_datadir}/netpanzer
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.8.4-11
+- Add an AppData file for the software center
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8.4-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/netpanzer.git/commit/?h=master&id=09a9ebc9be753a952a5d5547c77a123c4c77f3b4
More information about the scm-commits
mailing list