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

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


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


diff --git a/btanks.spec b/btanks.spec
index 46dd706..60f4000 100644
--- a/btanks.spec
+++ b/btanks.spec
@@ -1,6 +1,6 @@
 Name:           btanks
 Version:        0.9.8083
-Release:        9%{?dist}
+Release:        10%{?dist}
 Summary:        Funny battle on your desk
 Summary(ru):    Веселая маленькая война на столе
 
@@ -143,6 +143,44 @@ install -dm 755 %{buildroot}%{_datadir}/applications
 desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
 desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
 
+# 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 Ravi Srinivasan <ravishankar.srinivasan at gmail.com> -->
+<!--
+EmailAddress: jessefrgsmith at yahoo.ca
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">btanks.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>A fun filled scrolling game with battle tanks</summary>
+  <description>
+    <p>
+      Battle tanks is a fun filled old school style scrolling battle tank game.
+    </p>
+    <p>
+      It has original cartoon style graphics and sound track and is multiplayer
+      focused.
+      Choose from 3 different vehicles and destroy your enemies using a large
+      assortment of weapons.
+    </p>
+  </description>
+  <url type="homepage">http://btanks.sourceforge.net/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/btanks/a.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/btanks/b.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/btanks/c.png</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %clean
 rm -rf %{buildroot}
@@ -162,6 +200,7 @@ rm -rf %{buildroot}
 %dir %{_libdir}/%{name}
 %{_libdir}/%{name}/*.so
 %{_datadir}/pixmaps/%{name}.png
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/applications/bted.desktop
 
@@ -172,6 +211,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.9.8083-10
+- Add an AppData file for the software center
+
 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.8083-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/btanks.git/commit/?h=master&id=090c66cd298938bc31b589fea6a4ee264a5fac16


More information about the scm-commits mailing list