rhughes pushed to torcs (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 17:01:49 UTC 2015
>From 193bd4e87be425714e4c1c77a49349909c4dd0b0 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:44:48 +0000
Subject: Add an AppData file for the software center
diff --git a/torcs.spec b/torcs.spec
index 09234e9..28fc6fc 100644
--- a/torcs.spec
+++ b/torcs.spec
@@ -1,7 +1,7 @@
Summary: The Open Racing Car Simulator
Name: torcs
Version: 1.3.3
-Release: 6%{?dist}
+Release: 7%{?dist}
License: GPLv2+
Group: Amusements/Games
URL: http://torcs.org/
@@ -70,6 +70,53 @@ desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
%{name}.desktop
+# 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> -->
+<!--
+EmailAddress: torcs-devel at lists.sourceforge.net
+SentUpstream: 2014-05-22
+-->
+<application>
+ <id type="desktop">torcs.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0+</project_license>
+ <description>
+ <p>
+ TORCS is a highly portable multi platform car racing simulation.
+ It is used as ordinary car racing game, as AI racing game and as research
+ platform.
+ </p>
+ <p>
+ TORCS features many different cars, tracks, and opponents to race against.
+ You can steer with a joystick, steering wheel, mouse or the keyboard.
+ Graphic features lighting, smoke, skid marks and glowing brake disks.
+ The simulation features a simple damage model, collisions, tire and wheel
+ properties, aerodynamics and much more.
+ </p>
+ <p>
+ The game play allows different types of races from the simple practice
+ session up to the championship.
+ Enjoy racing against your friends in the split screen mode with up to four
+ human players.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default">http://a.fsdn.com/con/app/proj/torcs/screenshots/torcs-20121025123603.png</screenshot>
+ <screenshot>http://a.fsdn.com/con/app/proj/torcs/screenshots/torcs-20121025125922.png</screenshot>
+ </screenshots>
+ <url type="homepage">http://torcs.sourceforge.net/</url>
+</application>
+EOF
+
# We need this for proper automatic stripping to take place (still in 1.3.0)
find %{buildroot}%{_libdir}/%{name}/ -name '*.so' | xargs %{__chmod} +x
@@ -98,6 +145,7 @@ find %{buildroot}%{_libdir}/%{name}/ -name '*.so' | xargs %{__chmod} +x
%{_libdir}/%{name}/modules/
%{_libdir}/%{name}/setup_linux.sh
%{_libdir}/%{name}/*-bin
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/games/%{name}/
%{_datadir}/games/%{name}/config/
@@ -122,6 +170,9 @@ find %{buildroot}%{_libdir}/%{name}/ -name '*.so' | xargs %{__chmod} +x
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.3.3-7
+- Add an AppData file for the software center
+
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/torcs.git/commit/?h=master&id=193bd4e87be425714e4c1c77a49349909c4dd0b0
More information about the scm-commits
mailing list