rhughes pushed to supertuxkart (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 17:00:38 UTC 2015
>From 01a13abaf449da000a47a755364c436c5e68dc4b Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:44:03 +0000
Subject: Add an AppData file for the software center
diff --git a/supertuxkart.spec b/supertuxkart.spec
index 7a970f2..46ccc11 100644
--- a/supertuxkart.spec
+++ b/supertuxkart.spec
@@ -1,6 +1,6 @@
Name: supertuxkart
Version: 0.8.1
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: Kids 3D go-kart racing game featuring Tux
Group: Amusements/Games
License: GPLv2+ and GPLv3 and CC-BY-SA
@@ -78,6 +78,56 @@ install -p -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man6
mkdir -p %{buildroot}%{_libdir}
install -m755 lib/irrlicht/libstkirrlicht.so %{buildroot}%{_libdir}/libstkirrlicht.so
+# 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 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: https://github.com/supertuxkart/stk-code/issues/1545
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">supertuxkart.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>A racing game</summary>
+ <description>
+ <p>
+ SuperTuxKart is a fun 3D kart racing game.
+ You can play with up to 4 friends on one PC, racing against each other or
+ just try to beat the computer.
+ </p>
+ <p>
+ See the great lighthouse or drive through the sand and visit the pyramids.
+ Race underground or in space, watching the stars passing by.
+ Have some rest under the palms on the beach (watching the other karts
+ overtaking you :) ).
+ But don't eat the bananas! Watch for bowling balls, plungers, bubble gum
+ and cakes thrown by opponents.
+ </p>
+ <p>
+ You can do a single race against other karts, compete in one of several
+ Grand Prix, try to beat the high score in time trials on your own, play
+ battle mode against your friends, and more!
+ </p>
+ </description>
+ <url type="homepage">http://supertuxkart.sourceforge.net/</url>
+ <screenshots>
+ <screenshot type="default">http://supertuxkart.sourceforge.net/persistent/images/4/4d/SuperTuxKart_0.8_screenshot.jpg</screenshot>
+ <screenshot>http://supertuxkart.sourceforge.net/persistent/images/1/1f/SuperTuxKart_0.8_screenshot4.jpg</screenshot>
+ </screenshots>
+ <!-- FIXME: change this to an upstream email address for spec updates
+ <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+ -->
+</application>
+EOF
+
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
/sbin/ldconfig
@@ -99,6 +149,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*%{name}.desktop
%doc AUTHORS COPYING ChangeLog README TODO supertuxkart-0.7.3-license-clarification.txt
%{_bindir}/%{name}*
%{_mandir}/man6/%{name}.6.gz
+%{_datadir}/appdata/*%{name}.appdata.xml
%{_datadir}/applications/*%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_libdir}/libstkirrlicht.so
@@ -107,6 +158,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*%{name}.desktop
%{_datadir}/%{name}
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.8.1-10
+- Add an AppData file for the software center
+
* Wed Oct 15 2014 Jon Ciesla <limburgher at gmail.com> - 0.8.1-9
- Re-bundling irrlicht and bullet per FPC 459.
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/supertuxkart.git/commit/?h=master&id=01a13abaf449da000a47a755364c436c5e68dc4b
More information about the scm-commits
mailing list