rhughes pushed to billiards (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:17:17 UTC 2015


>From 3eb99be1ec26546febee7799e5d0c7bf634132e2 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:05:25 +0000
Subject: Add an AppData file for the software center


diff --git a/billiards.spec b/billiards.spec
index 4141f8f..3c21466 100644
--- a/billiards.spec
+++ b/billiards.spec
@@ -5,7 +5,7 @@
 
 Name:		billiards
 Version:	0.4.1
-Release:	7%{?dist}
+Release:	8%{?dist}
 Summary:	A free cue sports simulator
 
 # The main part of the program is released under the terms of GNU General
@@ -78,6 +78,42 @@ rm -f %{buildroot}/%{_docdir}/%{name}/README
 # valide the installed .desktop file
 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 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+EmailAddress:  dpapavas at gmail.com
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">billiards.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Play billiards and pool</summary>
+  <description>
+    <p>
+      Billiards is a 3D cue sports simulator that allows you to play different variations
+      of billiards and pool. Billiards features the Carom billiards games of straight rail,
+      balk line and cushion games, as well as eight-ball pool and nine-ball pool.
+    </p>
+  </description>
+  <url type="homepage">http://www.nongnu.org/billiards/</url>
+  <screenshots>
+    <screenshot type="default">http://www.nongnu.org/billiards/screenshot2.png</screenshot>
+    <screenshot>http://www.nongnu.org/billiards/screenshot1.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
 
 %post
 /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
@@ -107,12 +143,16 @@ fi
 %{_libdir}/techne/%{name}
 %{_mandir}/man6/*
 %{_infodir}/%{name}.info*
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
 %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.4.1-8
+- Add an AppData file for the software center
+
 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.1-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/billiards.git/commit/?h=master&id=3eb99be1ec26546febee7799e5d0c7bf634132e2


More information about the scm-commits mailing list