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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:50:54 UTC 2015


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


diff --git a/megaglest.spec b/megaglest.spec
index c2758e8..28e0438 100644
--- a/megaglest.spec
+++ b/megaglest.spec
@@ -1,6 +1,6 @@
 Name:		megaglest
 Version:	3.11.1
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Open Source 3d real time strategy game
 License:	GPLv3+ and GPL+
 Group:		Amusements/Games
@@ -93,6 +93,42 @@ for file in megaglest megaglest_editor megaglest_g3dviewer; do
     desktop-file-validate ${RPM_BUILD_ROOT}%{_datadir}/applications/$file.desktop
 done
 
+# 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 <williamjmorenor at gmail.com> -->
+<!--
+EmailAddress: contact at megaglest.org
+SentUpstream: 2014-05-27
+-->
+<application>
+  <id type="desktop">megaglest.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>3D Real Time Strategy game</summary>
+  <description>
+    <p>
+      MegaGlest is a real time strategy game in a fantasy world with elements of
+      past civilizations and magic, you must build up an army and defeat your foe,
+      you can choose one of seven factions:
+      Magic, Tech, Indians, Egypt, Norsemen, Persian and Romans.
+    </p>
+  </description>
+  <url type="homepage">http://megaglest.org/</url>
+  <screenshots>
+    <screenshot type="default">http://megaglest.org/uploads/images/screenshots/screen10.jpg</screenshot>
+    <screenshot>http://megaglest.org/uploads/images/screenshots/mg1.jpg</screenshot>
+    <screenshot>http://megaglest.org/uploads/images/screenshots/screen2.jpg</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %files
 %doc docs/AUTHORS.source_code.txt
 %doc docs/CHANGELOG.txt
@@ -100,12 +136,16 @@ done
 %doc docs/gnu_gpl_3.0.txt
 %doc docs/README.txt
 %{_bindir}/*
+%{_datadir}/appdata/%{name}*.appdata.xml
 %{_datadir}/applications/megaglest*.desktop
 %{_datadir}/icons/*
 %{_mandir}/man6/*.6*
 %{_datadir}/megaglest/*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 3.11.1-2
+- Add an AppData file for the software center
+
 * Tue Mar 24 2015 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 3.11.1-1
 - Update to latest upstream release.
 - Remove upstreamed icon-path patch.
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list