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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:48:12 UTC 2015


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


diff --git a/lbrickbuster2.spec b/lbrickbuster2.spec
index 8028023..65ec2b6 100644
--- a/lbrickbuster2.spec
+++ b/lbrickbuster2.spec
@@ -3,7 +3,7 @@
 
 Name:           lbrickbuster2
 Version:        2.6.4
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        Brickbuster arcade game
 License:        GPLv2+
 Group:          Amusements/Games
@@ -89,6 +89,37 @@ convert lbrickbuster48.gif \
 touch -r lbrickbuster48.gif \
     $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 Edgar Muniz Berlinck <edgar.vv at gmail.com> -->
+<!--
+EmailAddress: wolfgang at rohdewald.de
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">lbrickbuster2.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Free version of Breakout</summary>
+  <description>
+    <p>
+      Break all the tiles and don't let your ball fall.
+      Simple and fun.
+    </p>
+  </description>
+  <url type="homepage">http://lgames.sourceforge.net/index.php?project=LBreakout2</url>
+  <screenshots>
+    <screenshot type="default">http://lgames.sourceforge.net/LBreakout2/ss2.jpg</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %post
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -109,11 +140,15 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_bindir}/%{name}server
 %{_datadir}/%{name}
 %{_datadir}/icons/hicolor/*/apps/%{name}.png
+%{_datadir}/appdata/*%{name}.appdata.xml
 %{_datadir}/applications/*%{name}.desktop
 %verify(not md5 size mtime) %config(noreplace) %attr(664, games, games) %{_var}/games/%{name}.hscr
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.6.4-8
+- Add an AppData file for the software center
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.6.4-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list