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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:17:28 UTC 2015


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


diff --git a/biloba.spec b/biloba.spec
index 66d2153..a0c4307 100644
--- a/biloba.spec
+++ b/biloba.spec
@@ -1,6 +1,6 @@
 Name:           biloba
 Version:        0.9.3
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        A tactical board game
 
 Group:          Amusements/Games
@@ -39,6 +39,44 @@ cp -p biloba_icon.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/biloba
 convert -scale 32x32 biloba_icon.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/biloba.png
 convert -scale 16x16 biloba_icon.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/biloba.png
 
+# 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 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+EmailAddress: colin at colino.net
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">biloba.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Strategic board game</summary>
+  <description>
+    <p>
+      Biloba is a board game for 2 to 4 players that involves moving pawns around on
+      an octagonal board with square cells. The goal of bilboa is to remove all of your
+      opponent's pawns. Bilboa can be played both against AI and real opponents.
+    </p>
+  </description>
+  <url type="homepage">http://biloba.sourceforge.net/</url>
+  <screenshots>
+    <screenshot type="default">http://biloba.sourceforge.net/2p.png</screenshot>
+    <screenshot>http://biloba.sourceforge.net/3p.png</screenshot>
+    <screenshot>http://biloba.sourceforge.net/4p.png</screenshot>
+  </screenshots>
+  <!-- FIXME: change this to an upstream email address for spec updates
+  <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+   -->
+</application>
+EOF
+
 desktop-file-install                    \
   --dir=$RPM_BUILD_ROOT%{_datadir}/applications         \
   %{SOURCE1}
@@ -66,9 +104,13 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/*
 %{_datadir}/%{name}
 %{_datadir}/icons/hicolor/??x??/apps/%{name}.png
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.9.3-8
+- Add an AppData file for the software center
+
 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.3-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/biloba.git/commit/?h=master&id=a3609bef2c86d92e1cf3de0a05b9405315529b34


More information about the scm-commits mailing list