rhughes pushed to scorched3d (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:58:07 UTC 2015
>From 0589841806f764536cd1f8eef7c0836cbb03dd1d Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:42:38 +0000
Subject: Add an AppData file for the software center
diff --git a/scorched3d.spec b/scorched3d.spec
index 98d14ce..8b97833 100644
--- a/scorched3d.spec
+++ b/scorched3d.spec
@@ -1,6 +1,6 @@
Name: scorched3d
Version: 44
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Game based loosely on the classic DOS game Scorched Earth
Group: Amusements/Games
License: GPLv2+ and CC-BY-SA
@@ -94,6 +94,40 @@ install -p -m 644 tank2-0.png \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
popd
+# 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 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: http://www.scorched3d.co.uk/mantisbt/view.php?id=209
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">scorched3d.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Turn based 3D artillery game</summary>
+ <description>
+ <p>
+ Scorched 3D is a turn-based 3D artillery game where you take control of a
+ tank and attack your opponents in a 3D landscape with a range of weapons.
+ It also features some real-time elements allowing you to counter opponents
+ attacks, and also features online multiplayer modes.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default">http://www.scorched3d.co.uk/phpBB3/gallery/image.php?album_id=8&image_id=61&view=no_count</screenshot>
+ <screenshot>http://www.scorched3d.co.uk/phpBB3/gallery/image.php?album_id=3&image_id=4&view=no_count</screenshot>
+ </screenshots>
+ <url type="homepage">http://www.scorched3d.co.uk/</url>
+</application>
+EOF
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -112,11 +146,15 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%doc scorched/COPYING scorched/apoc
%{_bindir}/%{name}*
%{_datadir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 44-3
+- Add an AppData file for the software center
+
* Sat Aug 30 2014 Hans de Goede <hdegoede at redhat.com> - 44-2
- Fix build on F-20
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/scorched3d.git/commit/?h=master&id=0589841806f764536cd1f8eef7c0836cbb03dd1d
More information about the scm-commits
mailing list