rhughes pushed to armacycles-ad (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:16:09 UTC 2015
>From f0042fb0bb21f34265bc052334e0c51513e6d60d Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:04:42 +0000
Subject: Add an AppData file for the software center
diff --git a/armacycles-ad.spec b/armacycles-ad.spec
index 99beabc..56fd9f5 100644
--- a/armacycles-ad.spec
+++ b/armacycles-ad.spec
@@ -1,7 +1,7 @@
%define _hardened_build 1
Name: armacycles-ad
Version: 0.2.8.3.2
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: A lightcycle game in 3D
Group: Amusements/Games
@@ -121,6 +121,41 @@ make install DESTDIR=$RPM_BUILD_ROOT uninstall_location=foobar
rm -r $RPM_BUILD_ROOT%{_datadir}/armacyclesad-dedicated/desktop
popd
+# 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: https://bugs.launchpad.net/armagetronad/+bug/1323628
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">armacycles-ad.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>3D motorcycle battle</summary>
+ <description>
+ <p>
+ Armagetron is a 3D Tron-inspired game where the player controls a motorcycle
+ that emits a immovable wall behind it.
+ Gameplay consists of 2 of these cycles battling to trap each other to
+ force their opponent to crash into the wall.
+ </p>
+ </description>
+ <url type="homepage">http://armagetronad.sf.net</url>
+ <screenshots>
+ <screenshot type="default">http://armagetronad.org/screenshots/screenshot_2.png</screenshot>
+ <screenshot>http://armagetronad.org/screenshots/screenshot_5.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
# Install icons and desktop file
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
@@ -167,6 +202,7 @@ fi
%config(noreplace) /etc/armacyclesad
%{_bindir}/armacyclesad
%{_datadir}/armacyclesad
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/armacycles-ad.desktop
%{_datadir}/icons/hicolor/*/apps/armagetronad.png
@@ -180,6 +216,9 @@ fi
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.2.8.3.2-10
+- Add an AppData file for the software center
+
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.8.3.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/armacycles-ad.git/commit/?h=master&id=f0042fb0bb21f34265bc052334e0c51513e6d60d
More information about the scm-commits
mailing list