rhughes pushed to teeworlds (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 17:00:49 UTC 2015
>From 7b66be3817689e7f8a144df5b57e771b04ce116a Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:44:15 +0000
Subject: Add an AppData file for the software center
diff --git a/teeworlds.spec b/teeworlds.spec
index a120932..a140ad3 100644
--- a/teeworlds.spec
+++ b/teeworlds.spec
@@ -1,7 +1,7 @@
%global _hardened_build 1
Name: teeworlds
Version: 0.6.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Online multi-player platform 2D shooter
Group: Amusements/Games
@@ -104,6 +104,40 @@ desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \
%{SOURCE2}
+# 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 Eduardo Mayorga <e at mayorgalinux.com> -->
+<!--
+EmailAddress: contact at teeworlds.com
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">teeworlds.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Online multiplayer shooter game</summary>
+ <description>
+ <p>
+ Teeworlds is a 2D online action game for up to 16 players battling in
+ several game modes.
+ The controls are inspired by First Person Shooter game genre.
+ It lets you desing custom maps.
+ </p>
+ </description>
+ <url type="homepage">http://www.teeworlds.com/</url>
+ <screenshots>
+ <screenshot type="default">https://www.teeworlds.com/images/screens/screenshot_jungle.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
mkdir -p %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}-server at .service
@@ -131,6 +165,7 @@ install -m 0664 %{SOURCE6} %{buildroot}%{_sysconfdir}/%{name}/ctf.cfg
%doc readme.txt license.txt
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.png
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%files data
@@ -143,6 +178,9 @@ install -m 0664 %{SOURCE6} %{buildroot}%{_sysconfdir}/%{name}/ctf.cfg
%attr(-,teeworlds,teeworlds)%{_sysconfdir}/%{name}/
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.6.3-2
+- Add an AppData file for the software center
+
* Mon Nov 24 2014 Igor Gnatenko <i.gnatenko.brain at gmail.com> - 0.6.3-1
- 0.6.3 (RHBZ #1167167,#1167168)
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/teeworlds.git/commit/?h=master&id=7b66be3817689e7f8a144df5b57e771b04ce116a
More information about the scm-commits
mailing list