rhughes pushed to astromenace (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:16:25 UTC 2015
>From 63e639a08612e319f81d3156cd98ff47e4217973 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:04:54 +0000
Subject: Add an AppData file for the software center
diff --git a/astromenace.spec b/astromenace.spec
index 53a1fc1..599862f 100644
--- a/astromenace.spec
+++ b/astromenace.spec
@@ -1,6 +1,6 @@
Name: astromenace
Version: 1.3.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Hardcore 3D space shooter with spaceship upgrade possibilities
Group: Amusements/Games
@@ -74,6 +74,45 @@ install -p -m 644 %{SOURCE2} \
ln -s opengl-game-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/%{name}-wrapper
+# 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: viewizard at viewizard.com
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">astromenace.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>A fast paced and intense 3D scrolling space shooter</summary>
+ <description>
+ <p>
+ Astromenace is a 3D scrolling space shooter with amazing graphics and
+ intense gameplay.
+ </p>
+ <p>
+ You have a range of vehicles to choose from and numerous weapons that can
+ be upgraded as you repel wave after wave of spaceships and dodge space
+ objects.
+ </p>
+ </description>
+ <url type="homepage">http://www.viewizard.com/</url>
+ <screenshots>
+ <screenshot type="default">http://www.viewizard.com/astromenace/am3.jpg</screenshot>
+ <screenshot>http://www.viewizard.com/astromenace/am6.jpg</screenshot>
+ <screenshot>http://www.viewizard.com/astromenace/am10.jpg</screenshot>
+ </screenshots>
+</application>
+EOF
+
chmod -x ChangeLog.txt
%post
@@ -97,11 +136,15 @@ rm -rf %{buildroot}
%{_bindir}/astromenace
%{_bindir}/%{name}-wrapper
%doc ReadMe.txt License.txt gpl-3.0.txt ChangeLog.txt
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/astromenace.desktop
%{_datadir}/icons/hicolor/64x64/apps/astromenace.png
%{_datadir}/astromenace/
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.3.2-4
+- Add an AppData file for the software center
+
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/astromenace.git/commit/?h=master&id=63e639a08612e319f81d3156cd98ff47e4217973
More information about the scm-commits
mailing list