rhughes pushed to tennix (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 17:01:10 UTC 2015
>From 6ad4d6ad4e977cba2c860e726b6b941e46900907 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:44:22 +0000
Subject: Add an AppData file for the software center
diff --git a/tennix.spec b/tennix.spec
index 5bb9ce1..04d76f1 100644
--- a/tennix.spec
+++ b/tennix.spec
@@ -1,6 +1,6 @@
Name: tennix
Version: 1.0
-Release: 12%{?dist}
+Release: 13%{?dist}
Summary: A simple tennis game
Group: Amusements/Games
@@ -46,6 +46,38 @@ desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications \
--delete-original \
$RPM_BUILD_ROOT%{_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 Your Name <email at address.com> -->
+<!--
+EmailAddress: m at thp.io
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">tennix.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Tennis simulator</summary>
+ <description>
+ <p>
+ Tennix is a overhead view tennis simulator for one or two players.
+ It features locations from all 4 Grand Slam tournaments in Australia,
+ France, the USA and England.
+ </p>
+ </description>
+ <url type="homepage">http://icculus.org/tennix/</url>
+ <screenshots>
+ <screenshot type="default">http://icculus.org/tennix/screenshots/2011/tennix-ingame-2011.png</screenshot>
+ </screenshots>
+</application>
+EOF
%clean
rm -rf $RPM_BUILD_ROOT
@@ -69,6 +101,7 @@ fi
%defattr(-,root,root,-)
%doc README COPYING ChangeLog TODO
%attr(2755,root,games) %{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/pixmaps/%{name}.png
@@ -76,6 +109,9 @@ fi
%attr(0664,root,games) /usr/share/games/tennix/tennix.tnx
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.0-13
+- Add an AppData file for the software center
+
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/tennix.git/commit/?h=master&id=6ad4d6ad4e977cba2c860e726b6b941e46900907
More information about the scm-commits
mailing list