rhughes pushed to vdrift (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:03:12 UTC 2015


>From 6c38fac9759803e122e5181095e598758734d619 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:45:40 +0000
Subject: Add an AppData file for the software center


diff --git a/vdrift.spec b/vdrift.spec
index 236e8e8..c23fc71 100644
--- a/vdrift.spec
+++ b/vdrift.spec
@@ -1,6 +1,6 @@
 Name: vdrift
 Version:  20120722
-Release:  13%{?dist}
+Release:  14%{?dist}
 Summary: Driving/drift racing simulation
 
 Group: Amusements/Games 
@@ -119,6 +119,43 @@ mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
 install -p -m 644 %{SOURCE2} \
   %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
 
+# 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 Luya Tshimbalanga <luya at fedoraproject.org> -->
+<!--
+BugReportURL: https://github.com/VDrift/vdrift/issues/122
+SentUpstream: 2014-09-25
+-->
+<application>
+  <id type="desktop">vdrift.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Drifting oriented racing simulation</summary>
+  <description>
+    <p>
+      VDrift is a racing simulation oriented to drifting.
+    </p>
+    <p>
+      It features over 45 tracks based on famous real-world circuits and 45 cars
+      based on real-world vehicles.
+    </p>
+  </description>
+  <url type="homepage">http://vdrift.net</url>
+  <screenshots>
+    <screenshot type="default"><!--screenshot url here--></screenshot>
+    <screenshot><!--screenshot url here--></screenshot>
+    <screenshot><!--screenshot url here--></screenshot>
+  </screenshots>
+</application>
+EOF
+
 %post
 touch --no-create %{_datadir}/icons/hicolor || :
 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
@@ -135,6 +172,7 @@ fi
 %files
 %doc README.md LICENSE
 %{_bindir}/vdrift
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/vdrift.desktop
 %{_datadir}/icons/hicolor/32x32/apps/vdrift.png
 
@@ -142,6 +180,9 @@ fi
 %{_datadir}/vdrift
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 20120722-14
+- Add an AppData file for the software center
+
 * Tue Jan 27 2015 Petr Machata <pmachata at redhat.com> - 20120722-13
 - Rebuild for boost 1.57.0
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/vdrift.git/commit/?h=master&id=6c38fac9759803e122e5181095e598758734d619


More information about the scm-commits mailing list