rhughes pushed to atanks (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:16:52 UTC 2015
>From d0e3a9ea3dd5294d9268ee6c167d63094ded670e Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:05:07 +0000
Subject: Add an AppData file for the software center
diff --git a/atanks.spec b/atanks.spec
index 685c669..da60118 100644
--- a/atanks.spec
+++ b/atanks.spec
@@ -1,6 +1,6 @@
Name: atanks
Version: 6.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Remake of a classic DOS game "Scorched Earth"
Group: Amusements/Games
@@ -51,6 +51,43 @@ desktop-file-install \
--add-category StrategyGame \
atanks.desktop
+# 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> -->
+<!-- HOUSEKEEPING FOR RICHARD, REMOVE THIS COMMENT WHEN THIS GOES UPSTREAM
+BugReportURL: jessefrgsmith at yahoo.ca
+SentUpstream: 2014-09-17
+-->
+<application>
+ <id type="desktop">atanks.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Turn-based artillery strategy game</summary>
+ <description>
+ <p>
+ Atomic Tanks is a turn based artillery strategy game where opponents
+ take turns to bombard each other with a wide array of different weapons.
+ To make things more interesting, Atomic Tanks also features desctructable
+ landscapes, teleporting, parachutes and different weather conditions.
+ </p>
+ </description>
+ <url type="homepage">http://atanks.sourceforge.net/index.html</url>
+ <screenshots>
+ <screenshot type="default">http://atanks.sourceforge.net/Screenshots/scrnshot29.png</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
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
@@ -75,11 +112,15 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_datadir}/games/atanks
%{_datadir}/games/atanks/*
%{_datadir}/pixmaps/*
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*
%{_bindir}/atanks*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 6.1-2
+- Add an AppData file for the software center
+
* Fri Dec 19 2014 Jonathan Ciesla <limburgher at gmail.com> - 6.1-1
- 6.1
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/atanks.git/commit/?h=master&id=d0e3a9ea3dd5294d9268ee6c167d63094ded670e
More information about the scm-commits
mailing list