rhughes pushed to nazghul (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:45:21 UTC 2015
>From 62f7f70c3c005f11664b0b46591c1e2e1638ccb9 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:35:03 +0000
Subject: Add an AppData file for the software center
diff --git a/nazghul.spec b/nazghul.spec
index 9be258d..4567326 100644
--- a/nazghul.spec
+++ b/nazghul.spec
@@ -1,6 +1,6 @@
Name: nazghul
Version: 0.7.1
-Release: 11.20120228gitb0a402a%{?dist}
+Release: 12.20120228gitb0a402a%{?dist}
Summary: A computer role-playing game (CRPG) engine
License: GPLv2+
@@ -85,6 +85,39 @@ desktop-file-install \
install -D -m 644 icons/haxima.png %{buildroot}/%{_datadir}/pixmaps/haxima.png
+# 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/haxima.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/nazghul/support-requests/5/
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">haxima.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Top view 2D role playing game</summary>
+ <description>
+ <p>
+ Haxima is a 2D role playing game (RPG) that runs on the Nazghul engine.
+ You start out as a defenseless wanderer, you have to equip yourself,
+ learn spells, and travel the land completing quests.
+ </p>
+ </description>
+ <url type="homepage">http://myweb.cableone.net/gmcnutt/nazghul.html</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/haxima/a.png</screenshot>
+ <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/haxima/b.png</screenshot>
+ </screenshots>
+</application>
+EOF
%files
%defattr(-,root,root,-)
@@ -98,12 +131,16 @@ install -D -m 644 icons/haxima.png %{buildroot}/%{_datadir}/pixmaps/haxima.png
%defattr(-,root,root,-)
%{_bindir}/haxima
%{_datadir}/nazghul/haxima
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*haxima.desktop
%{_datadir}/pixmaps/haxima.png
%doc USERS_GUIDE haxima-music-license
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.7.1-12.20120228gitb0a402a
+- Add an AppData file for the software center
+
* Sat Feb 21 2015 Jason L Tibbitts III <tibbs at math.uh.edu> - 0.7.1-11.20120228gitb0a402a
- Generate a 256x256 icon from the included XCF to fix bug 1157591.
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/nazghul.git/commit/?h=master&id=62f7f70c3c005f11664b0b46591c1e2e1638ccb9
More information about the scm-commits
mailing list