rhughes pushed to pioneers (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:55:29 UTC 2015
>From d3f0774c6153f95148c37d7d24abd324c392156d Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:41:21 +0000
Subject: Add an AppData file for the software center
diff --git a/pioneers.spec b/pioneers.spec
index a171019..22248d8 100644
--- a/pioneers.spec
+++ b/pioneers.spec
@@ -1,6 +1,6 @@
Name: pioneers
Version: 15.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Turnbased board strategy game (colonize an island)
Group: Amusements/Games
License: GPLv2+
@@ -67,6 +67,38 @@ desktop-file-install --delete-original \
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}-editor.desktop \
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}-server.desktop
+# 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> -->
+<!--
+BugReportURL: https://sourceforge.net/p/pio/bugs/286/
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">pioneers.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Multiplayer board game inspired by The Settlers of Catan</summary>
+ <description>
+ <p>
+ Pioneers is a free videogame implementation of the famous German game Settlers of Catan.
+ The goal is to build towns, cities and roads on a board that is different every time, while accumulating various types of cards.
+ It can be played online.
+ </p>
+ </description>
+ <url type="homepage">http://pio.sourceforge.net/</url>
+ <screenshots>
+ <screenshot type="default">http://pio.sourceforge.net/screenshots0.11/client.png</screenshot>
+ </screenshots>
+</application>
+EOF
%check
if grep Catan `find $RPM_BUILD_ROOT ! -path "$RPM_BUILD_ROOT/usr/src/debug*"`;
@@ -103,6 +135,7 @@ scrollkeeper-update -q || :
%{_datadir}/applications/fedora-%{name}.desktop
%{_datadir}/applications/fedora-%{name}-server.desktop
%else
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-server.desktop
%endif
@@ -122,6 +155,9 @@ scrollkeeper-update -q || :
%{_datadir}/icons/hicolor/scalable/apps/%{name}-editor.svg
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 15.3-2
+- Add an AppData file for the software center
+
* Mon Oct 27 2014 Paul W. Frields <stickster at gmail.com> - 15.3-1
- Update to upstream 15.3 (#1018594)
- Notes: http://sourceforge.net/p/pio/news/2014/10/pioneers-153-released/
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/pioneers.git/commit/?h=master&id=d3f0774c6153f95148c37d7d24abd324c392156d
More information about the scm-commits
mailing list