rhughes pushed to kollision (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 5ebc02b802fd4899be48615514cb6f21cdd14ea6 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:36:35 +0000
Subject: Add an AppData file for the software center


diff --git a/kollision.spec b/kollision.spec
index 580a528..b3f361f 100644
--- a/kollision.spec
+++ b/kollision.spec
@@ -2,7 +2,7 @@
 Name:    kollision
 Summary: A simple ball dodging game
 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,40 @@ 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/%{name}.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Edgar Muniz Berlinck <edgar.vv at gmail.com> -->
+<!--
+EmailAddress: wolfgang at rohdewald.de 
+SentUpstream: 2014-09-24
+-->
+<component type="desktop">
+  <id>kollision.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Casual ball game</summary>
+  <description>
+    <p>
+      Kollision is a casual game where you need to throw your ball and avoid the
+      others balls on the table as long as possible.
+    </p>
+  </description>
+  <url type="homepage">https://projects.kde.org/projects/kde/kdegames/kollision</url>
+  <screenshots>
+    <screenshot type="default">
+      <image>http://games.kde.org/games/kollision/screenshots/originals/kollision01.jpg</image>
+    </screenshot>
+  </screenshots>
+</component>
+EOF
+
 %find_lang %{name} --with-kde
 
 
@@ -67,6 +101,7 @@ gtk-update-icon-cache %{_kde4_iconsdir}/oxygen &> /dev/null || :
 %files -f %{name}.lang
 %doc COPYING*
 %{_kde4_bindir}/%{name}
+%{_kde4_datadir}/appdata/%{name}.appdata.xml
 %{_kde4_datadir}/applications/kde4/%{name}.desktop
 %{_kde4_iconsdir}/hicolor/*/*/*
 %{_kde4_iconsdir}/oxygen/*/*/*
@@ -74,6 +109,9 @@ gtk-update-icon-cache %{_kde4_iconsdir}/oxygen &> /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/kollision.git/commit/?h=master&id=5ebc02b802fd4899be48615514cb6f21cdd14ea6


More information about the scm-commits mailing list