rhughes pushed to cave9 (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:19:36 UTC 2015
>From fe3498943960434afaafebb14a789930ee0c1001 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:06:28 +0000
Subject: Add an AppData file for the software center
diff --git a/cave9.spec b/cave9.spec
index 6692ce4..227acec 100644
--- a/cave9.spec
+++ b/cave9.spec
@@ -3,7 +3,7 @@
Name: cave9
Version: 0.4
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: 3d game of cave exploration
Group: Amusements/Games
@@ -68,6 +68,39 @@ ln -s %{_fontconfig_templatedir}/%{fontconf} \
ln -s ../../..%{_fontdir}/mutante.ttf $RPM_BUILD_ROOT/usr/share/cave9/hud.ttf
+# 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> -->
+<!--
+BugReportURL: https://code.google.com/p/cave9/issues/detail?id=38
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">cave9.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>A cave exploration game featuring unique controls based on gravity</summary>
+ <description>
+ <p>
+ cave9 is 3D cave exploration game based on the SF-cave game.
+ You control a jet that maneuvers through a series of caves and the objective
+ of the game is to avoid colliding with the cave walls.
+ </p>
+ </description>
+ <url type="homepage">http://code.google.com/p/cave9</url>
+ <screenshots>
+ <screenshot type="default">http://cave9.googlecode.com/files/cave9-small.jpg</screenshot>
+ </screenshots>
+</application>
+EOF
+
# Add AppStream metadata
install -Dm 0644 -p %{SOURCE4} \
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
@@ -80,9 +113,13 @@ desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE2}
%{_bindir}/cave9
%{_datadir}/cave9
%{_datadir}/pixmaps/cave9.png
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/cave9.desktop
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.4-12
+- Add an AppData file for the software center
+
* Tue Nov 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.4-11
- Add metainfo file to show mutante font in gnome-software
- Added fontname macro
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/cave9.git/commit/?h=master&id=fe3498943960434afaafebb14a789930ee0c1001
More information about the scm-commits
mailing list