rhughes pushed to speed-dreams (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:59:37 UTC 2015
>From 74958ce1ff7d307f7e4882df0fae6080f0729d36 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:43:30 +0000
Subject: Add an AppData file for the software center
diff --git a/speed-dreams.spec b/speed-dreams.spec
index 6d5211c..8f5e26d 100644
--- a/speed-dreams.spec
+++ b/speed-dreams.spec
@@ -14,7 +14,7 @@
Summary: The Open Racing Car Simulator
Name: speed-dreams
Version: 2.1.0
-Release: 0.21.%{svndate}svn%(echo %{src_release} | tr '-' '_').rc2%{?dist}
+Release: 0.22.%{svndate}svn%(echo %{src_release} | tr '-' '_').rc2%{?dist}
Epoch: 1
# Contains LGPLv2 files also published under GPLv2+
License: GPLv2+
@@ -126,6 +126,40 @@ desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
%{SOURCE5}
+# 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 Your Name <email at address.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/speed-dreams/tickets/880/
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">speed-dreams.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>The Open Racing Car Simulator</summary>
+ <description>
+ <p>
+ Speed-Dreams is a 3D racing cars simulator forked from TORCS using OpenGL.
+ The goal is to have programmed robots drivers racing against each others.
+ You can also drive yourself with either a wheel, keyboard or mouse.
+ </p>
+ </description>
+ <url type="homepage">http://speed-dreams.org/</url>
+ <screenshots>
+ <screenshot type="default">http://speed-dreams.org/images/sd-20/speed-dreams-20-track-epsie.jpg</screenshot>
+ <screenshot>http://speed-dreams.org/images/sd-20/speed-dreams-20-car-supercars.jpg</screenshot>
+ </screenshots>
+</application>
+EOF
+
pushd %{buildroot}%{_libdir}/games/%{name}-2
# Change rpath to refer only private lib dir.
for lib in $(find . -type f -name \*.so ); do
@@ -172,6 +206,7 @@ find %{buildroot} -size 0 -delete
%{_bindir}/%{name}-2
%{_bindir}/sd2-*
%{_libdir}/games/%{name}-2/
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/games/%{name}-2/
%exclude %{_datadir}/games/%{name}-2/cars/
@@ -194,6 +229,9 @@ find %{buildroot} -size 0 -delete
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1:2.1.0-0.22.20140627svn5799.rc2
+- Add an AppData file for the software center
+
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:2.1.0-0.21.20140627svn5799.rc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/speed-dreams.git/commit/?h=master&id=74958ce1ff7d307f7e4882df0fae6080f0729d36
More information about the scm-commits
mailing list