limb pushed to wesnoth (f22). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Apr 13 19:51:28 UTC 2015
>From d433fb0558d98cab6110101623e0ce3285d48e3c Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:46:07 +0000
Subject: Add an AppData file for the software center
diff --git a/wesnoth.spec b/wesnoth.spec
index 3a76d6e..4b61327 100644
--- a/wesnoth.spec
+++ b/wesnoth.spec
@@ -3,7 +3,7 @@
Name: wesnoth
Version: 1.12.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Turn-based strategy game with a fantasy theme
Group: Amusements/Games
@@ -126,6 +126,60 @@ ln -s /usr/share/fonts/sazanami-fonts-gothic/sazanami-gothic.ttf $RPM_BUILD_ROOT
# wqy-zenhei-fonts
ln -s /usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc $RPM_BUILD_ROOT/%{_datadir}/fonts/wqy-zenhei.ttc
+# 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 Richard Hughes <richard at hughsie.com> -->
+<!--
+EmailAddress: wesnoth-dev at gna.org
+SentUpstream: 2013-10-05
+-->
+<application>
+ <id type="desktop">wesnoth.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <description>
+ <p>
+ The Battle for Wesnoth is a turn-based tactical strategy game with a high
+ fantasy theme.
+ Build up a great army, gradually turning raw recruits into hardened
+ veterans.
+ In later games, recall your toughest warriors and form a deadly host whom
+ no one can stand against! Choose units from a large pool of specialists,
+ and hand-pick a force with the right strengths to fight well on different
+ terrains against all manner of opposition.
+ </p>
+ <p>
+ Wesnoth has many different sagas waiting to be played.
+ Fight to regain the throne of Wesnoth, of which you are the legitimate
+ heir... lead a brutal quest to unite the orcish tribes... vanquish a horde
+ of undead warriors... Guide a band of elvish survivors in an epic quest to
+ find a new home...
+ </p>
+ <p>
+ There are at least two hundred unit types, sixteen races, six major
+ factions, and hundreds of years of history.
+ The world of Wesnoth is absolutely huge and only limited by your
+ creativity.
+ You can also challenge up to eight friends—or strangers—and fight in
+ epic multiplayer fantasy battles.
+ </p>
+ </description>
+ <url type="homepage">http://www.wesnoth.org/</url>
+ <screenshots>
+ <screenshot type="default">http://www.wesnoth.org/images/sshots/wesnoth-1.6-4.jpg</screenshot>
+ <screenshot>http://www.wesnoth.org/images/sshots/wesnoth-1.6-5.jpg</screenshot>
+ <screenshot>http://www.wesnoth.org/images/sshots/wesnoth-1.6-2.jpg</screenshot>
+ </screenshots>
+ <updatecontact>wesnoth-dev at gna.org</updatecontact>
+</application>
+EOF
# language stuff
%find_lang %{name} LANGFILES --with-man
@@ -179,6 +233,7 @@ fi
%files data -f LANGFILES
%{_datadir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/wesnoth.desktop
%{_datadir}/fonts/*
%{_datadir}/icons/*
@@ -187,6 +242,9 @@ fi
%{_mandir}/*/man6/wesnoth*.6.gz
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.12.1-3
+- Add an AppData file for the software center
+
* Tue Jan 27 2015 Petr Machata <pmachata at redhat.com> - 1.12.1-2
- Rebuild for boost 1.57.0
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/wesnoth.git/commit/?h=f22&id=d433fb0558d98cab6110101623e0ce3285d48e3c
More information about the scm-commits
mailing list