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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:44:38 UTC 2015


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


diff --git a/gvrng.spec b/gvrng.spec
index f55bbab..fe0e168 100644
--- a/gvrng.spec
+++ b/gvrng.spec
@@ -1,6 +1,6 @@
 Name: gvrng		
 Version: 4.4	
-Release: 10%{?dist}
+Release: 11%{?dist}
 Summary: A robot driving game designed to introduce to kids to programming	
 
 Group: Amusements/Games
@@ -55,6 +55,42 @@ install -m 0755 %{SOURCE1} %{buildroot}/%{_bindir}
 convert -size 48x48 ./bitmaps/robot.svg \
                     %{buildroot}/%{_datadir}/pixmaps/gvrng.png
 desktop-file-install --dir=%{buildroot}/%{_datadir}/applications/ %{SOURCE2}
+
+# 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> -->
+<!--
+BugReportURL: https://sourceforge.net/p/gvr/bugs/33/
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">gvrng.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>a game to learn the basics of programming</summary>
+  <description>
+    <p>
+      Guido van Robot is an educational game where players use a basic programming
+      language to control a robotic triangle through streets and press buttons.
+      The simplistic language that is used helps students understand the basics
+      of programming including command sequences, conditional statements, loops,
+      and abstracting procedures.
+    </p>
+  </description>
+  <url type="homepage">http://gvr.sourceforge.net</url>
+  <screenshots>
+    <screenshot type="default">http://gvr.sourceforge.net/screen_shots/gnuLinuxGvR.png</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %find_lang %{name}
 
 %files -f %{name}.lang
@@ -62,12 +98,16 @@ desktop-file-install --dir=%{buildroot}/%{_datadir}/applications/ %{SOURCE2}
 %{python_sitelib}/gvrng/*
 %doc %{_docdir}/gvrng
 %dir %{_datadir}/gvrng
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*
 %{_datadir}/pixmaps/*
 %{_mandir}/man1/*
 %{_bindir}/*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 4.4-11
+- Add an AppData file for the software center
+
 * Wed Aug 27 2014 Neil Horman <nhorman at tuxdriver.com> - 4.4-10
 - Fixed locale location (bz 1133237)
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gvrng.git/commit/?h=master&id=7f2fc1ee86b7edb4829e0c72ca2ac20c6238d5ad


More information about the scm-commits mailing list