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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:25:29 UTC 2015


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


diff --git a/flare.spec b/flare.spec
index 338d4e9..70244b4 100644
--- a/flare.spec
+++ b/flare.spec
@@ -1,6 +1,6 @@
 Name:       flare
 Version:    0.19
-Release:    3%{?dist}
+Release:    4%{?dist}
 Summary:    A single player, 2D-isometric, action Role-Playing Game
 License:    CC-BY-SA and CC-BY and CC0 and Public Domain
 URL:        http://www.flarerpg.org
@@ -73,6 +73,46 @@ ln -s %{_datadir}/fonts/liberation/LiberationSans-Bold.ttf %{buildroot}%{_datadi
 ln -s %{_datadir}/fonts/liberation/LiberationSans-Italic.ttf %{buildroot}%{_datadir}/%{name}/%{name}-game/mods/fantasycore/fonts/LiberationSans-Italic.ttf
 ln -s %{_datadir}/fonts/liberation/LiberationSans-Regular.ttf %{buildroot}%{_datadir}/%{name}/%{name}-game/mods/fantasycore/fonts/LiberationSans-Regular.ttf
 
+# 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 Edgar Muniz Berlinck <edgar.vv at gmail.com> -->
+<!--
+EmailAddress: clintbellanger at gmail.com
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">flare.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Dark fantasy world 2D RPG</summary>
+  <description>
+    <p>
+      Single-player 2D RPG Flare brings to you a dark fantasy world, action,
+      items and equipments.
+    </p>
+    <p>
+      Built using Flare engine, a engine made especially for 2d RPG games.
+    </p>
+  </description>
+  <url type="homepage">http://www.flarerpg.org</url>
+  <screenshots>
+    <screenshot type="default">http://www.flarerpg.org/images/screenshots/0047.jpg</screenshot>
+    <screenshot>http://www.flarerpg.org/images/screenshots/0048.jpg</screenshot>
+    <screenshot>http://www.flarerpg.org/images/screenshots/0049.jpg</screenshot>
+    <screenshot>http://www.flarerpg.org/images/screenshots/0050.jpg</screenshot>
+    <screenshot>http://www.flarerpg.org/images/screenshots/0051.jpg</screenshot>
+    <screenshot>http://www.flarerpg.org/images/screenshots/0052.jpg</screenshot>
+  </screenshots>
+</application>
+EOF
+
 # Validate desktop file
 desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
 
@@ -90,6 +130,7 @@ fi
 
 %files
 %doc README CREDITS.txt RELEASE_NOTES.txt
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
 
@@ -140,6 +181,9 @@ fi
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.19-4
+- Add an AppData file for the software center
+
 * Tue Sep 2 2014 Marcos Paulo de Souza <marcos.souza.org at gmail.com> - 0.19-3
 - Fixed desktop file by removing TryExec args
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/flare.git/commit/?h=master&id=0f44609059ca17dc0445db70fceba8b08f34a071


More information about the scm-commits mailing list