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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:43:15 UTC 2015


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


diff --git a/gogui.spec b/gogui.spec
index d490fe3..66cb1de 100644
--- a/gogui.spec
+++ b/gogui.spec
@@ -1,6 +1,6 @@
 Name:		gogui
 Version:	1.4.9
-Release:	3%{?dist}
+Release:	4%{?dist}
 Summary:	Graphical user interface to programs that play the board game Go
 
 License:	GPLv3
@@ -78,6 +78,47 @@ install -pm 644 config/gogui-mime.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages
 install -d $RPM_BUILD_ROOT%{_datadir}/thumbnailers
 install -pm 644 config/%{name}.thumbnailer $RPM_BUILD_ROOT%{_datadir}/thumbnailers/%{name}.thumbnailer
 
+# 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 Tim Waugh <twaugh at redhat.com -->
+<!--
+BugReportURL: https://sourceforge.net/p/gogui/bugs/41/
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">gogui.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Play the Go board game</summary>
+  <description>
+    <p>
+      GoGui lets you play the game of Go, a board game with simple rules but
+      very many possible strategies.
+      Players take it in turns to capture territory and surround stones placed
+      by their opponent.
+    </p>
+    <p>
+      You can play against the computer by installing a program such as GNU Go
+      (gnugo) and configuring GoGui to use it for one of the players.
+    </p>
+    <p>
+      Games can be loaded and saved, or set up in specific positions.
+    </p>
+  </description>
+  <url type="homepage">http://gogui.sourceforge.net/</url>
+  <screenshots>
+    <screenshot type="default">http://a.fsdn.com/con/app/proj/gogui/screenshots/119714.jpg</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %jpackage_script net.sf.gogui.gogui.MainWrapper "" "" %{name}/%{name} %{name} true
 %jpackage_script net.sf.gogui.tools.adapter.Main "" "" %{name}/%{name}-adapter %{name}-adapter true
 %jpackage_script net.sf.gogui.tools.client.Main "" "" %{name}/%{name}-client %{name}-client true
@@ -112,6 +153,7 @@ fi
 %files
 %{_javadir}/%{name}/
 %{_bindir}/gogui*
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %dir %{_datadir}/thumbnailers
 %{_datadir}/thumbnailers/%{name}.thumbnailer
@@ -127,6 +169,9 @@ fi
 %doc COPYING.html
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.4.9-4
+- Add an AppData file for the software center
+
 * Thu Oct 02 2014 Rex Dieter <rdieter at fedoraproject.org> 1.4.9-3
 - update icon/mime scriptlets
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gogui.git/commit/?h=master&id=1bf002f3c79cef4f5abd24cde8981ce187dd1b99


More information about the scm-commits mailing list