rhughes pushed to openlierox (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:53:55 UTC 2015
>From 1da254077393741cdc5a9eae16dcb82b99ee62e4 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:40:11 +0000
Subject: Add an AppData file for the software center
diff --git a/openlierox.spec b/openlierox.spec
index bba9751..698281c 100644
--- a/openlierox.spec
+++ b/openlierox.spec
@@ -4,7 +4,7 @@ Name: openlierox
# Because we downgraded from 0.59 to 0.58 as 0.59 never became stable
Epoch: 1
Version: 0.58
-Release: 0.1.%{prever}%{?dist}
+Release: 0.2.%{prever}%{?dist}
Summary: Addictive realtime multiplayer 2D shoot-em-up
Group: Amusements/Games
License: LGPLv2+
@@ -67,6 +67,42 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps
install -p -m 644 share/OpenLieroX.svg \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
+# 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> -->
+<!--
+BugReportURL: http://www.openlierox.net/forum/index.php/topic,15702.0.html
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">openlierox.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Sidescrolling shooter where you control worms armed with a range of weapons</summary>
+ <description>
+ <p>
+ Open Lierox is a side scrolling multiplayer shooter where you control a tiny worm
+ that is armed with a range of weapons such as a rocket launcher, shotguns and ninja
+ stars.
+ Typical gameplay is a deathmatch style where you try to rack up as many kills
+ of the other players in a set amount of time.
+ </p>
+ </description>
+ <url type="homepage">http://openlierox.sourceforge.net/</url>
+ <screenshots>
+ <screenshot type="default">http://www.openlierox.net/official/screenshots/olx11.png</screenshot>
+ <screenshot>http://www.openlierox.net/official/screenshots/olx3.png</screenshot>
+ <screenshot>http://www.openlierox.net/official/screenshots/olx1.png</screenshot>
+ </screenshots>
+</application>
+EOF
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -85,12 +121,16 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%doc COPYING.LIB README.fedora doc/original_lx_docs/*
%{_bindir}/%{name}
%{_datadir}/OpenLieroX
+%{_datadir}/appdata/*%{name}.appdata.xml
%{_datadir}/applications/*%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man6/%{name}.6*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1:0.58-0.2.rc3
+- Add an AppData file for the software center
+
* Fri Jan 16 2015 Hans de Goede <hdegoede at redhat.com> - 1:0.58-0.1.rc3
- 0.59 never left the beta phase and is rather buggy, so most openlierox
community member play 0.58, downgrade to 0.58 to allow online playing
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/openlierox.git/commit/?h=master&id=1da254077393741cdc5a9eae16dcb82b99ee62e4
More information about the scm-commits
mailing list