[extremetuxracer] install appdata file (#1036330)

Nils Philippsen nphilipp at fedoraproject.org
Wed Dec 11 21:00:34 UTC 2013


commit 6b00c035cabe6cee8b5e0d6635e57eda961783ea
Author: Nils Philippsen <nils at redhat.com>
Date:   Wed Dec 11 22:00:13 2013 +0100

    install appdata file (#1036330)

 etr.appdata.xml      |   31 +++++++++++++++++++++++++++++++
 extremetuxracer.spec |   10 +++++++++-
 2 files changed, 40 insertions(+), 1 deletions(-)
---
diff --git a/etr.appdata.xml b/etr.appdata.xml
new file mode 100644
index 0000000..bbc926a
--- /dev/null
+++ b/etr.appdata.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+    <id type="desktop">etr.desktop</id>
+    <licence>CC0</licence>
+    <name>Extreme Tuxracer</name>
+    <summary>High speed arctic racing game based on Tux Racer</summary>
+    <description>
+        <p>
+            Extreme Tux Racer is a downhill racing game starring Tux, the Linux
+            penguin.
+        </p>
+        <p>
+            Tux must slide on his belly down snow and ice covered hills,
+            collecting herring, and making it to the finish line before the
+            time is up.
+        </p>
+        <p>
+            ETR is based on PlanetPenguin Racer, which is in turn based on the
+            famous Tux Racer.
+        </p>
+    </description>
+    <!-- No screenshots -->
+    <screenshots>
+        <screenshot type="default" width="800" height="600">https://a.fsdn.com/con/app/proj/extremetuxracer/screenshots/ETR4.png</screenshot>
+        <screenshot width="800" height="600">https://a.fsdn.com/con/app/proj/extremetuxracer/screenshots/ETR3.png</screenshot>
+        <screenshot width="800" height="600">https://a.fsdn.com/con/app/proj/extremetuxracer/screenshots/ETR2.png</screenshot>
+    </screenshots>
+    <url type="homepage">http://extremetuxracer.sourceforge.net/</url>
+    <!-- upstream doesn't yet have this, it's maintained in Fedora -->
+    <updatecontact>nils at redhat.com</updatecontact>
+</application>
diff --git a/extremetuxracer.spec b/extremetuxracer.spec
index f769c38..d3976c1 100644
--- a/extremetuxracer.spec
+++ b/extremetuxracer.spec
@@ -11,7 +11,7 @@
 Summary: High speed arctic racing game
 Name: extremetuxracer
 Version: 0.6.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2+
 Group: Amusements/Games
 URL: http://extremetuxracer.sourceforge.net
@@ -21,6 +21,7 @@ URL: http://extremetuxracer.sourceforge.net
 # regenerate from the upstream tarball.
 Source0: etr-%{version}%{patch_ext}.tar.xz
 Source1: etr-clean-tarball.sh
+Source2: etr.appdata.xml
 # Don't reference removed files
 Patch0: etr-0.6.0-clean-tarball.patch
 # Recreated files after the above patch
@@ -119,6 +120,9 @@ ln -s pc_outline.ttf "%{buildroot}%{_fontdir}/PaperCuts_outline.ttf"
 # move docs in correct location
 mv -f %{buildroot}%{_docdir}/etr %{buildroot}%{_pkgdocdir}
 
+# install appdata file
+install -DT -m0644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/etr.appdata.xml
+
 %clean
 rm -rf %{buildroot}
 
@@ -129,11 +133,15 @@ rm -rf %{buildroot}
 %{_datadir}/etr
 %{_datadir}/applications/etr.desktop
 %{_datadir}/pixmaps/etr.png
+%{_datadir}/appdata
 
 %files common
 %doc AUTHORS COPYING ChangeLog
 
 %changelog
+* Wed Dec 11 2013 Nils Philippsen <nils at redhat.com> - 0.6.0-2
+- install appdata file (#1036330)
+
 * Wed Dec 11 2013 Nils Philippsen <nils at redhat.com> - 0.6.0-1
 - version 0.6.0
 - use patched tarball cleaned from dubiously licensed font


More information about the scm-commits mailing list