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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:54:57 UTC 2015


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


diff --git a/picmi.spec b/picmi.spec
index 8684abe..f823574 100644
--- a/picmi.spec
+++ b/picmi.spec
@@ -2,7 +2,7 @@
 Name:    picmi
 Summary: A nonogram logic 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,42 @@ 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 Eduardo Mayorga <e at mayorgalinux.com> -->
+<!--
+EmailAddress: jakob.gruber at gmail.com
+SentUpstream: 2014-09-25
+-->
+<component type="desktop">
+  <id>picmi.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Puzzle game based on number logic</summary>
+  <description>
+    <p>
+      The goal is to reveal the hidden pattern in the board by coloring or
+      leaving blank the cells in a grid according to numbers given at the side
+      of the grid.
+      This is a single player game.
+    </p>
+  </description>
+  <url type="homepage">https://projects.kde.org/projects/kde/kdegames/picmi</url>
+  <screenshots>
+    <screenshot type="default">
+      <image>http://games.kde.org/games/picmi/screenshots/originals/picmi01.png</image>
+    </screenshot>
+  </screenshots>
+</component>
+EOF
+
 %find_lang %{name} --with-kde
 
 
@@ -62,12 +98,16 @@ gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /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_appsdir}/%{name}/
 
 
 %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/picmi.git/commit/?h=master&id=add7f7b87dd054463420aa466f18a1637804f9d2


More information about the scm-commits mailing list