rhughes pushed to lordsawar (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:49:00 UTC 2015
>From 30ed8730c06dc09fc295ded349d846445bbdb16a Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:37:31 +0000
Subject: Add an AppData file for the software center
diff --git a/lordsawar.spec b/lordsawar.spec
index ad53b47..0b581ec 100644
--- a/lordsawar.spec
+++ b/lordsawar.spec
@@ -1,6 +1,6 @@
Name: lordsawar
Version: 0.2.0
-Release: 15%{?dist}
+Release: 16%{?dist}
Summary: Turn-based strategy game in a fantasy setting
# This is used for prereleases and such
@@ -47,6 +47,45 @@ make install DESTDIR=%{buildroot}
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%find_lang %{name}
+# 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.vv at gmail.com> -->
+<!--
+BugReportURL: https://savannah.nongnu.org/bugs/index.php?43294
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">lordsawar.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Turn based war game</summary>
+ <description>
+ <p>
+ Turn-based game where you objective is use your city's resources to build
+ one army to coquest more cityes to get more resources to build more army
+ to conquer more cities.
+ </p>
+ <p>
+ Also, you can send your hero to complete some quests and search in nerby ruins.
+ </p>
+ <p>
+ You can play agaist the computer or other people.
+ </p>
+ </description>
+ <url type="homepage">http://www.nongnu.org/lordsawar/</url>
+ <screenshots>
+ <screenshot type="default">http://www.nongnu.org/lordsawar/screenshot3.png</screenshot>
+ <screenshot>http://www.nongnu.org/lordsawar/screenshot2.png</screenshot>
+ </screenshots>
+</application>
+EOF
%clean
rm -rf %{buildroot}
@@ -78,6 +117,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_bindir}/%{name}-game-list-client
%{_bindir}/%{name}-game-list-server
%{_datadir}/gnome/help/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/32x32/apps/lordsawar.png
%{_datadir}/icons/hicolor/64x64/apps/lordsawar.png
@@ -85,6 +125,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.2.0-16
+- Add an AppData file for the software center
+
* Tue Jan 27 2015 Petr Machata <pmachata at redhat.com> - 0.2.0-15
- Rebuild for boost 1.57.0
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/lordsawar.git/commit/?h=master&id=30ed8730c06dc09fc295ded349d846445bbdb16a
More information about the scm-commits
mailing list