rhughes pushed to glob2 (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:41:51 UTC 2015
>From 51d4e44f3d1753704389d31847a77f652f1fa5c2 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:32:33 +0000
Subject: Add an AppData file for the software center
diff --git a/glob2.spec b/glob2.spec
index 9c44ea5..7bc9921 100644
--- a/glob2.spec
+++ b/glob2.spec
@@ -1,6 +1,6 @@
Name: glob2
Version: 0.9.4.4
-Release: 25%{?dist}
+Release: 26%{?dist}
Summary: An innovative RTS game
Group: Amusements/Games
@@ -81,6 +81,46 @@ desktop-file-install \
--delete-original \
$RPM_BUILD_ROOT%{_datadir}/applications/glob2.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> -->
+<!--
+BugReportURL: https://savannah.nongnu.org/bugs/?43293
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">glob2.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>real time strategy game with globs</summary>
+ <description>
+ <p>
+ Globulation 2 is a real time strategy (RTS) game where you use three
+ types of globs: workers, scouts, and warriors to wage war on computer
+ controlled communites of other
+ globs.
+ Globulation is unique from other RTS games in that it removes a lot of the
+ micromanagement from the gameplay.
+ You cannot control the globs directly, only place buildings and let the
+ globs do what they do best.
+ </p>
+ </description>
+ <url type="homepage">http://globulation2.org/</url>
+ <screenshots>
+ <screenshot type="default">http://globulation2.org/images/9/93/Beta3-Battle.jpg</screenshot>
+ <screenshot>http://globulation2.org/images/5/5a/Beta2_MoreAttackingEnemy.jpg</screenshot>
+ <screenshot>http://globulation2.org/images/6/6a/Beta2_ParticleEffects.jpg</screenshot>
+ </screenshots>
+</application>
+EOF
+
%post
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
@@ -102,12 +142,16 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-)
%doc COPYING README
%{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.9.4.4-26
+- Add an AppData file for the software center
+
* Sat Feb 7 2015 josef radinger <cheese at nosuchhost.net> - 0.9.4.4-25
- adding glob2-fix_missing_return_in_nonvoid_functions.patch, taken from opensuse
- remove extension from Icon in desktop-file
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/glob2.git/commit/?h=master&id=51d4e44f3d1753704389d31847a77f652f1fa5c2
More information about the scm-commits
mailing list