rhughes pushed to warzone2100 (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 17:03:35 UTC 2015
>From 377bc6177234c01d7a3d5e185f827731e1e78da1 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:46:00 +0000
Subject: Add an AppData file for the software center
diff --git a/warzone2100.spec b/warzone2100.spec
index 0b73bbc..c90e256 100644
--- a/warzone2100.spec
+++ b/warzone2100.spec
@@ -1,6 +1,6 @@
Name: warzone2100
Version: 3.1.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Innovative 3D real-time strategy
Group: Amusements/Games
@@ -49,12 +49,54 @@ desktop-file-install \
--dir=$RPM_BUILD_ROOT%{_datadir}/applications/ \
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.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 Edgar Muniz Berlinck <edgar.vvl at gmail.com> -->
+<!--
+BugReportURL: http://forums.wz2100.net/posting.php?mode=post&f=30
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">warzone2100.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Strategy war game</summary>
+ <description>
+ <p>
+ Warzone 2100 is a strategy war game with a nuclear post-apocalyptic scenario.
+ You can play the campaign or against your friends, parents and relatives
+ in multiplayer mode.
+ </p>
+ <p>
+ Command your forces to crush your enemies and to restore the world.
+ </p>
+ <p>
+ The game offers alot of addons that can be downloaded on the main website.
+ </p>
+ </description>
+ <url type="homepage">http://wz2100.net/</url>
+ <screenshots>
+ <screenshot type="default">http://static.giantbomb.com/uploads/original/0/7192/428661-000023.jpg</screenshot>
+ <screenshot>http://www.download26.com/modules/wfdownloads/images/screenshots/warzonescreenshot.png</screenshot>
+ <screenshot>http://media.moddb.com/images/downloads/1/10/9762/screen11.jpg</screenshot>
+ </screenshots>
+</application>
+EOF
+
%find_lang %{name}
install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name}/
%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/icons/warzone*
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/sequences.wz
@@ -64,6 +106,9 @@ install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name}/
%{_datadir}/%{name}/sequences.wz
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 3.1.2-2
+- Add an AppData file for the software center
+
* Mon Jan 5 2015 Jan Synáček <jsynacek at redhat.com> - 3.1.2-1
- Update to 3.1.2 (#1178445)
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/warzone2100.git/commit/?h=master&id=377bc6177234c01d7a3d5e185f827731e1e78da1
More information about the scm-commits
mailing list