rhughes pushed to xmoto (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 17:04:49 UTC 2015
>From feea4fd689a2181bb604979ac57e8b9b5f16c9b0 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:46:41 +0000
Subject: Add an AppData file for the software center
diff --git a/xmoto.spec b/xmoto.spec
index 0d52e83..783d43d 100644
--- a/xmoto.spec
+++ b/xmoto.spec
@@ -1,6 +1,6 @@
Name: xmoto
Version: 0.5.11
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Challenging 2D Motocross Platform Game
Group: Amusements/Games
@@ -107,6 +107,52 @@ cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications --add-category X-Fedora %{SOURCE1}
+# 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> -->
+<!--
+EmailAddress: neckelmann at gmail.com
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">xmoto.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>2D motocross platform game</summary>
+ <description>
+ <p>
+ xmoto is a side-scrolling 2D motocross platform game where the objective
+ is to collect all the floating items in the level and proceed to the
+ checkered finishing ball.
+ The motocross bike that the player rides in
+ xmoto has a lot of bounce, and the if the player hits their head on any
+ solid object the level has to be restarted.
+ </p>
+ <p>
+ There are hundreds of levels available in xmoto, both included in the
+ initial install, and downloadable from the internet.
+ There is also the
+ ability to challenge fastest times with other players from around the world.
+ and saved ghost data to visually see the runs of other players through the
+ levels.
+ </p>
+ </description>
+ <url type="homepage">http://xmoto.sourceforge.net/</url>
+ <screenshots>
+ <screenshot type="default">http://wiki.xmoto.tuxfamily.org/images/7/7d/Screenshot0022.png</screenshot>
+ <screenshot>http://wiki.xmoto.tuxfamily.org/images/6/65/Xmoto01.png</screenshot>
+ <screenshot>http://wiki.xmoto.tuxfamily.org/images/0/04/Screenshot0005.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
rm $RPM_BUILD_ROOT%{_datadir}/xmoto/Textures/Fonts/DejaVuSans.ttf
ln -s ../../../fonts/dejavu/DejaVuSans.ttf $RPM_BUILD_ROOT%{_datadir}/xmoto/Textures/Fonts/DejaVuSans.ttf
@@ -129,11 +175,15 @@ fi
%doc ChangeLog COPYING README
%{_bindir}/xmoto
%{_datadir}/xmoto
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/xmoto.desktop
%{_datadir}/icons/hicolor/48x48/apps/xmoto.png
%{_mandir}/man6/xmoto.6.gz
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.5.11-5
+- Add an AppData file for the software center
+
* Wed Oct 29 2014 Jon Ciesla <limburgher at gmail.com> 0.5.11-4
- Use system ode, rebuild for new ode.
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/xmoto.git/commit/?h=master&id=feea4fd689a2181bb604979ac57e8b9b5f16c9b0
More information about the scm-commits
mailing list