rhughes pushed to crossfire-client (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:21:28 UTC 2015
>From fc844b70f6529d7dea73f2cc4714f84d3db1f096 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:07:25 +0000
Subject: Add an AppData file for the software center
diff --git a/crossfire-client.spec b/crossfire-client.spec
index 096f2b9..be9024b 100644
--- a/crossfire-client.spec
+++ b/crossfire-client.spec
@@ -1,6 +1,6 @@
Name: crossfire-client
Version: 1.70.0
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: Client for connecting to crossfire servers
Group: Amusements/Games
License: GPLv2+
@@ -80,6 +80,38 @@ desktop-file-install \
--add-category RolePlaying \
gtk-v2/crossfire-client.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 Ravi Srinivasan <ravishankar.srinivasan at gmail.com> -->
+<!--
+EmailAddress: crossfire at metalforge.org
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">crossfire-client.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>A multiplayer co-operative RPG involving exploration, magic and treasure hunting</summary>
+ <description>
+ <p>
+ Crossfire is an open source RPG with numerous maps that can be explored
+ for treasures and artifacts.
+ </p>
+ </description>
+ <url type="homepage">http://crossfire.real-time.com</url>
+ <screenshots>
+ <screenshot type="default">http://crossfire.real-time.com/clients/gtkv2images/caelestis_790x600.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -104,6 +136,7 @@ fi
# Sound support is too broken to use in Fedora right now.
#%%{_bindir}/cfsndserv
#%%{_bindir}/cfsndserv_alsa9
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
@@ -120,6 +153,9 @@ fi
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.70.0-8
+- Add an AppData file for the software center
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.70.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/crossfire-client.git/commit/?h=master&id=fc844b70f6529d7dea73f2cc4714f84d3db1f096
More information about the scm-commits
mailing list