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

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


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


diff --git a/xskat.spec b/xskat.spec
index d4c9a5b..76f2444 100644
--- a/xskat.spec
+++ b/xskat.spec
@@ -5,7 +5,7 @@ Name:             xskat
 # Upstream License requires to alter the version number
 # for re-distribution
 Version:          %{upstream_version}.0
-Release:          12%{?dist}
+Release:          13%{?dist}
 # https://fedoraproject.org/wiki/Licensing/XSkat_License
 License:          XSkat
 Group:            Amusements/Games
@@ -72,6 +72,35 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
 convert icon.xbm $RPM_BUILD_ROOT%{_datadir}/pixmaps/xskat.xpm
 touch -r icon.xbm $RPM_BUILD_ROOT%{_datadir}/pixmaps/xskat.xpm
 
+# 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> -->
+<!--
+EmailAddress: m at il.xskat.de
+SentUpstream: 2014-09-25
+-->
+<application>
+  <id type="desktop">xskat.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>A trick taking card game popular in Germany</summary>
+  <description>
+    <p>
+      XSkat is a trick taking card game that is popular in Germany.
+      It has single and multiplayer (IRC, LAN) options.
+    </p>
+  </description>
+  <url type="homepage">http://www.xskat.de/xskat.html</url>
+</application>
+EOF
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -81,11 +110,15 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/xskat
 %{_mandir}/man6/xskat.6.gz
 %lang(de) %{_mandir}/de/man6/xskat.6.gz
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*
 %{_datadir}/pixmaps/%{name}.xpm
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 4.0.0-13
+- Add an AppData file for the software center
+
 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.0.0-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/xskat.git/commit/?h=master&id=3374cab5d72afbc9ad0ea161970bce0bb594632c


More information about the scm-commits mailing list