rhughes pushed to neverball (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:53:02 UTC 2015
>From f61bfe877a0f14ae8624727b40335e138a740d05 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:39:27 +0000
Subject: Add an AppData file for the software center
diff --git a/neverball.spec b/neverball.spec
index f45dfcd..dba866b 100644
--- a/neverball.spec
+++ b/neverball.spec
@@ -1,6 +1,6 @@
Name: neverball
Version: 1.6.0
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Common files for neverball and neverputt
@@ -75,6 +75,71 @@ desktop-file-install \
--dir $RPM_BUILD_ROOT/%{_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 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: http://forum.nevercorner.net/viewtopic.php?pid=31145
+SentUpstream: 2014-09-22
+-->
+<application>
+ <id type="desktop">neverball.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <description>
+ <p>
+ Tilt the floor to roll a ball through an obstacle course before time runs
+ out.
+ Neverball is part puzzle game, part action game, and entirely a test of
+ skill.
+ </p>
+ <p>
+ The current version includes 141 Neverball levels and 134 Neverputt holes.
+ </p>
+ </description>
+ <url type="homepage">http://neverball.org/</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/neverball/a.png</screenshot>
+ <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/neverball/b.png</screenshot>
+ <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/neverball/c.png</screenshot>
+ </screenshots>
+ <!-- FIXME: change this to an upstream email address for spec updates
+ <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+ -->
+</application>
+EOF
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/neverputt.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 William Moreno Reyes <williamjmorenor at gmail.com> -->
+<!--
+BugReportURL: http://forum.nevercorner.net/viewtopic.php?pid=31149#p31149
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">neverputt.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Guide a ball around the obstacles tilting the floor</summary>
+ <description>
+ <p>
+ In Neverball you must guide a ball around the obstacle tilting the floor
+ before the time is over.
+ </p>
+ <p>
+ Neverball is very similar to Super Monkey Ball, you must guide the ball to
+ the end point of each level getting all coins as you can.
+ </p>
+ </description>
+ <url type="homepage">http://neverball.org</url>
+</application>
+EOF
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -88,15 +153,20 @@ rm -rf $RPM_BUILD_ROOT
%doc LICENSE.md
%attr(0755,root,root) %{_bindir}/neverputt
%attr(0755,root,root) %{_bindir}/neverputt-wrapper
+%{_datadir}/appdata/neverputt.appdata.xml
%{_datadir}/applications/neverputt.desktop
%files neverball
%doc LICENSE.md
%attr(0755,root,root) %{_bindir}/neverball
%attr(0755,root,root) %{_bindir}/neverball-wrapper
+%{_datadir}/appdata/neverball.appdata.xml
%{_datadir}/applications/neverball.desktop
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.6.0-5
+- Add an AppData file for the software center
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/neverball.git/commit/?h=master&id=f61bfe877a0f14ae8624727b40335e138a740d05
More information about the scm-commits
mailing list