rhughes pushed to ballz (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:17:05 UTC 2015
>From 8c3bb12874509b2eb22109e64b4df87d0b639a54 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:05:13 +0000
Subject: Add an AppData file for the software center
diff --git a/ballz.spec b/ballz.spec
index 4a36476..b51bc4d 100644
--- a/ballz.spec
+++ b/ballz.spec
@@ -1,6 +1,6 @@
Name: ballz
Version: 1.0.2
-Release: 12%{?dist}
+Release: 13%{?dist}
Summary: Platform game with some puzzle elements
Group: Amusements/Games
License: BSD
@@ -31,17 +31,57 @@ make %{?_smp_mflags}
%make_install
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 Ravi Srinivasan <ravishankar.srinivasan at gmail.com> -->
+<!--
+BugReportURL: https://code.google.com/p/db-tins07/issues/detail?id=1
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">ballz.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>A platform game with puzzle elements</summary>
+ <description>
+ <p>
+ Ballz is a platformer with some puzzle elements.
+ You take control of a ball which is genetically modified by the British
+ secret service.
+ </p>
+ <p>
+ Your mission is to rescue captured British soldiers from a prison in Iran.
+ </p>
+ </description>
+ <url type="homepage">http://code.google.com/p/db-tins07/</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/ballz/a.png</screenshot>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/ballz/b.png</screenshot>
+ </screenshots>
+</application>
+EOF
%files
%doc AUTHORS README BSD-license ChangeLog
%{_bindir}/%{name}
%{_datadir}/%{name}
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_mandir}/man6/*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.0.2-13
+- Add an AppData file for the software center
+
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.2-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ballz.git/commit/?h=master&id=8c3bb12874509b2eb22109e64b4df87d0b639a54
More information about the scm-commits
mailing list