rhughes pushed to barrage (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:17:11 UTC 2015
>From c35ace7406d4e8a1b4f8011a3809bf80238b5760 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:05:19 +0000
Subject: Add an AppData file for the software center
diff --git a/barrage.spec b/barrage.spec
index 29574f4..a1cb0da 100644
--- a/barrage.spec
+++ b/barrage.spec
@@ -1,6 +1,6 @@
Name: barrage
Version: 1.0.4
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Kill and destroy as many targets as possible within 3 minutes
Group: Amusements/Games
@@ -55,6 +55,44 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
install -p -m 0644 %{SOURCE1} \
$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 Ravi Srinivasan <ravishankar.srinivasan at gmail.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/lgames/support-requests/2/
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">barrage.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>A fast paced action game where you shoot down as many targets as possible</summary>
+ <description>
+ <p>
+ Barrage is a fast paced shooter game where the objective is to destroy
+ targets like soldiers, tanks and jeeps within 3 minutes.
+ </p>
+ <p>
+ The player controls a gun that shoots small and large grenades at fast
+ moving targets and you need to manage your aim, ammo and re-load times carefully.
+ </p>
+ </description>
+ <url type="homepage">http://lgames.sourceforge.net/index.php?project=Barrage</url>
+ <screenshots>
+ <screenshot type="default">http://lgames.sourceforge.net/Barrage/ss1.jpg</screenshot>
+ <screenshot>http://lgames.sourceforge.net/Barrage/ss0.jpg</screenshot>
+ <screenshot>http://lgames.sourceforge.net/Barrage/ss2.jpg</screenshot>
+ </screenshots>
+</application>
+EOF
+
rm -f $RPM_BUILD_ROOT%{_datadir}/icons/barrage48.gif
%clean
@@ -78,11 +116,15 @@ fi
%doc AUTHORS BUGS ChangeLog COPYING README
%{_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.0.4-7
+- Add an AppData file for the software center
+
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/barrage.git/commit/?h=master&id=c35ace7406d4e8a1b4f8011a3809bf80238b5760
More information about the scm-commits
mailing list