rhughes pushed to blobwars (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:17:55 UTC 2015
>From bea2fd9db7275cf390d7e49ca5da4720fb9f0325 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:05:44 +0000
Subject: Add an AppData file for the software center
diff --git a/blobwars.spec b/blobwars.spec
index de593f4..83d1438 100644
--- a/blobwars.spec
+++ b/blobwars.spec
@@ -2,7 +2,7 @@
Name: blobwars
Version: 1.19
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: Mission and Objective based 2D Platform Game
Group: Amusements/Games
# Code and gfx is all GPLv2+. Music is all CC-BY-SA. SFX are a mix, see readme
@@ -39,6 +39,44 @@ rm $RPM_BUILD_ROOT%{_datadir}/%{name}/data/vera.ttf
ln -s %{_datadir}/fonts/bitstream-vera/Vera.ttf \
$RPM_BUILD_ROOT%{_datadir}/%{name}/data/vera.ttf
+# 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: hdegoede at redhat.com
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">blobwars.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Mission and Objective based 2D Platform Game</summary>
+ <description>
+ <p>
+ Blob Wars: Metal Blob Solid is a 2D side scrolling platformer where you control
+ Bob, (a blob secret agent) through 25 missions to rescue other blobs and stop
+ the evil alien leader: Galdov.
+ </p>
+ </description>
+ <url type="homepage">http://www.parallelrealities.co.uk/p/blob-wars-metal-blob-solid.html</url>
+ <screenshots>
+ <screenshot type="default">http://3.bp.blogspot.com/-VGOFb5wKQkE/T4RuJznkWkI/AAAAAAAAA10/u1pyXxBa1yw/s1600/03.jpg</screenshot>
+ <screenshot>http://3.bp.blogspot.com/-oBB_IbOXWEI/T4RuI6G3Y5I/AAAAAAAAA1s/_Tb2v1YrINk/s1600/02.jpg</screenshot>
+ <screenshot>http://3.bp.blogspot.com/-s0v-Lr5WBa0/T4RuH7DbgKI/AAAAAAAAA1k/58HXOP40NIk/s1600/01.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 || :
@@ -55,10 +93,14 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_pkgdocdir}
%{_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> - 1.19-10
+- Add an AppData file for the software center
+
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.19-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/blobwars.git/commit/?h=master&id=bea2fd9db7275cf390d7e49ca5da4720fb9f0325
More information about the scm-commits
mailing list