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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:40:29 UTC 2015


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


diff --git a/frozen-bubble.spec b/frozen-bubble.spec
index e80ea76..2eee076 100644
--- a/frozen-bubble.spec
+++ b/frozen-bubble.spec
@@ -3,7 +3,7 @@
 Summary: Frozen Bubble arcade game
 Name: frozen-bubble
 Version: 2.2.1
-Release: 0.10.beta1%{?dist}
+Release: 0.11.beta1%{?dist}
 License: GPLv2
 Group: Amusements/Games
 URL: http://www.frozen-bubble.org/
@@ -106,6 +106,44 @@ desktop-file-install \
 %{__install} -D -p -m 0644 server/init/fb-server.conf \
     %{buildroot}%{_sysconfdir}/fb-server.conf
 
+# 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 Richard Hughes <richard at hughsie.com> -->
+<!--
+EmailAddress: contact2 at frozen-bubble.org
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">frozen-bubble.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>An addictive game about frozen bubbles</summary>
+  <description>
+    <p>
+      Frozen Bubble is a free and open source game in which you throw colorful
+      bubbles and build groups to destroy them.
+    </p>
+    <p>
+      You can play this game locally or over the Internet.
+      It also contains a level editor for you to create your own games.
+    </p>
+  </description>
+  <url type="homepage">http://www.frozen-bubble.org/</url>
+  <screenshots>
+    <screenshot type="default">https://www.filepicker.io/api/file/zfCHFlCsR4OnStuPBwmQ</screenshot>
+    <screenshot>http://blog.kii.com/wp-content/uploads/2013/06/frozenbubble.jpg</screenshot>
+    <screenshot>https://www.filepicker.io/api/file/eqPdEWZMTtS1Un1LoRQ0</screenshot>
+  </screenshots>
+  <updatecontact>contact2_at_frozen-bubble.org</updatecontact>
+</application>
+EOF
 
 %check
 ./Build test
@@ -141,6 +179,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_bindir}/%{name}*
 %{perl_vendorarch}/auto/*
 %{perl_vendorarch}/Games/*
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/*/apps/%{name}.png
 %{_mandir}/man[13]/*
@@ -153,6 +192,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.2.1-0.11.beta1
+- Add an AppData file for the software center
+
 * Fri Aug 29 2014 Jitka Plesnikova <jplesnik at redhat.com> - 2.2.1-0.10.beta1
 - Perl 5.20 rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/frozen-bubble.git/commit/?h=master&id=7056dc72c1f2a580dc0f3b73122fe04ab116e774


More information about the scm-commits mailing list