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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:47:06 UTC 2015


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


diff --git a/kgoldrunner.spec b/kgoldrunner.spec
index 720378a..4d10fac 100644
--- a/kgoldrunner.spec
+++ b/kgoldrunner.spec
@@ -2,7 +2,7 @@
 Name:    kgoldrunner
 Summary: A game of action and puzzle solving
 Version: 14.12.3
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 License: GPLv2+ and GFDL
 URL:     https://projects.kde.org/projects/kde/kdegames/%{name}
@@ -40,6 +40,43 @@ make %{?_smp_mflags} -C %{_target_platform}
 %install
 make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
 
+# 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/KGoldrunner.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+EmailAddress: iandw.au at gmail.com
+SentUpstream: 2014-09-24
+-->
+<component type="desktop">
+  <id>KGoldrunner.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>2D action puzzle platform game</summary>
+  <description>
+    <p>
+      KGoldrunner is a two-dimensional side view action puzzle game where you play
+      as a golden runner that collects diamonds.
+      The player leads the runner (either with the keyboard or the mouse)
+      through a series of levels with ladders, obstacles and other puzzles to
+      collect all the diamonds and escape the maze.
+    </p>
+  </description>
+  <url type="homepage">https://projects.kde.org/projects/kde/kdegames/kgoldrunner</url>
+  <screenshots>
+    <screenshot type="default">
+      <image>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/KGoldrunner/a.png</image>
+    </screenshot>
+  </screenshots>
+</component>
+EOF
+
 %find_lang %{name} --with-kde
 
 
@@ -63,6 +100,7 @@ gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
 %doc COPYING*
 %doc README
 %{_kde4_bindir}/%{name}*
+%{_kde4_datadir}/appdata/*.appdata.xml
 %{_kde4_datadir}/applications/kde4/*.desktop
 %{_kde4_configdir}/%{name}.knsrc
 %{_kde4_iconsdir}/hicolor/*/*/*
@@ -70,6 +108,9 @@ gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 14.12.3-2
+- Add an AppData file for the software center
+
 * Sun Mar 01 2015 Rex Dieter <rdieter at fedoraproject.org> - 14.12.3-1
 - 14.12.3
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/kgoldrunner.git/commit/?h=master&id=a96d30609800506ff477c42d1b7d515b083bfb2c


More information about the scm-commits mailing list