rhughes pushed to redeclipse (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:57:13 UTC 2015
>From 581393720ae37851cfad54ec611e8d1e0f360e9b Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:42:19 +0000
Subject: Add an AppData file for the software center
diff --git a/redeclipse.spec b/redeclipse.spec
index 54758a2..204b9f2 100644
--- a/redeclipse.spec
+++ b/redeclipse.spec
@@ -2,7 +2,7 @@ Summary: A Free, Casual Arena Shooter
Name: redeclipse
Group: Amusements/Games
Version: 1.4
-Release: 8%{?dist}
+Release: 9%{?dist}
# Game engine is zlib
# Icon and trademark info is CC-BY-SA
@@ -121,6 +121,46 @@ make %{?_smp_mflags} CXXFLAGS="%{optflags}" -C src/ \
system-install system-install-cube2font
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.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 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: http://redeclipse.net/forum/viewforum.php?f=9
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">redeclipse.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <description>
+ <p>
+ Red Eclipse is a fun-filled new take on the casual first person arena
+ shooter with a general theme of agility in a variety of environments.
+ </p>
+ <p>
+ Red Eclipse features parkour, impulse boosts, dashing, and other tricks,
+ and favourite game modes with an array of mutators and variables.
+ A builtin editor lets you create your own maps cooperatively online.
+ </p>
+ </description>
+ <url type="homepage">http://www.redeclipse.net/</url>
+ <screenshots>
+ <screenshot type="default">http://www.redeclipse.net/bits/images/003.jpg</screenshot>
+ <screenshot>http://www.redeclipse.net/bits/images/006.jpg</screenshot>
+ <screenshot>http://www.redeclipse.net/bits/images/007.jpg</screenshot>
+ </screenshots>
+ <!-- FIXME: change this to an upstream email address for spec updates
+ <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+ -->
+</application>
+EOF
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -146,6 +186,7 @@ fi
%{_libexecdir}/%{name}/game
%{_datadir}/icons/*
%{_datadir}/pixmaps/*
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*
%dir %{_docdir}/%{name}/
%{_docdir}/%{name}/guidelines.txt
@@ -178,6 +219,9 @@ fi
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.4-9
+- Add an AppData file for the software center
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/redeclipse.git/commit/?h=master&id=581393720ae37851cfad54ec611e8d1e0f360e9b
More information about the scm-commits
mailing list