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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:18:09 UTC 2015


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


diff --git a/BlockOutII.spec b/BlockOutII.spec
index 4ed0208..434f935 100644
--- a/BlockOutII.spec
+++ b/BlockOutII.spec
@@ -5,7 +5,7 @@
 
 Name:           BlockOutII
 Version:        2.5
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        A free adaptation of the original BlockOut DOS game
 Group:          Amusements/Games
 License:        GPLv2+
@@ -90,6 +90,43 @@ install -p -m 644 %{name}-0.png \
 install -p -m 644 %{name}-2.png \
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.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: jlp_38 at yahoo.com
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">BlockOutII.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>A free adaptation of the original BlockOut game</summary>
+  <description>
+    <p>
+      BlockOut II is a game where the player moves and rotate 3D polycubes
+      that are constantly falling with the objective of clearing layers of
+      blocks.
+      It is a free adaptation of the original BlockOut game released in 1989.
+    </p>
+  </description>
+  <url type="homepage">http://www.blockout.net/blockout2/</url>
+  <screenshots>
+    <screenshot type="default">http://www.blockout.net/blockout2/screenshots/scr1.jpg</screenshot>
+    <screenshot>http://www.blockout.net/blockout2/screenshots/scr2.jpg</screenshot>
+  </screenshots>
+  <!-- FIXME: change this to an upstream email address for spec updates
+  <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+   -->
+</application>
+EOF
 
 %post
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -108,11 +145,15 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %doc BlockOut/README.txt
 %{_bindir}/%{name}*
 %{_datadir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/*/apps/%{name}.png
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.5-3
+- Add an AppData file for the software center
+
 * Mon Oct 27 2014 Hans de Goede <hdegoede at redhat.com> - 2.5-2
 - Found a better 48x48 icon
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/BlockOutII.git/commit/?h=master&id=57f7f49896f8af701e4dc77cda87b7868d6d4390


More information about the scm-commits mailing list