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

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


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


diff --git a/ksudoku.spec b/ksudoku.spec
index bc5792d..d018086 100644
--- a/ksudoku.spec
+++ b/ksudoku.spec
@@ -2,7 +2,7 @@
 Name:    ksudoku
 Summary: A logic-based symbol placement puzzle
 Version: 14.12.3
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 License: GPLv2+ and GFDL
 URL:     https://projects.kde.org/projects/kde/kdegames/%{name}
@@ -44,6 +44,41 @@ 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 William Moreno <williamjmorenor at gmail.com> -->
+<!--
+EmailAddress: wolfgang at rohdewald.de
+SentUpstream: 2014-09-24
+-->
+<component type="desktop">
+  <id>ksudoku.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Complete a numeric puzzle with the numbers from one to nine</summary>
+  <description>
+    <p>
+      KSudoku is a free version of the popular logic game Sudoku for the KDE desktop.
+      The game is to fill a nine by nine grid with the numbers from one to nine filling
+      the rows, columns and three by three squares without repeating a value on them.
+    </p>
+  </description>
+  <url type="homepage">https://projects.kde.org/projects/kde/kdegames/ksudoku</url>
+  <screenshots>
+    <screenshot type="default">
+      <image>http://games.kde.org/games/ksudoku/screenshots/originals/ksudoku01.jpg</image>
+    </screenshot>
+  </screenshots>
+</component>
+EOF
+
 %find_lang %{name} --with-kde
 
 
@@ -67,6 +102,7 @@ gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
 %doc COPYING*
 %doc README
 %{_kde4_bindir}/%{name}
+%{_kde4_datadir}/appdata/%{name}.appdata.xml
 %{_kde4_datadir}/applications/kde4/%{name}.desktop
 %{_kde4_configdir}/%{name}*
 %{_kde4_iconsdir}/hicolor/*/*/*
@@ -74,6 +110,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/ksudoku.git/commit/?h=master&id=0635f9f47c8dfc9352779f671f5b7cde5447f173


More information about the scm-commits mailing list