rhughes pushed to pychess (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:56:33 UTC 2015
>From f2647755ad5cde6f333eca82dd5d2ff78db65e6a Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:41:47 +0000
Subject: Add an AppData file for the software center
diff --git a/pychess.spec b/pychess.spec
index 1f74f3c..32aeedd 100644
--- a/pychess.spec
+++ b/pychess.spec
@@ -4,7 +4,7 @@
Name: pychess
Version: 0.10.1
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Chess game for GNOME
Group: Amusements/Games
@@ -59,6 +59,40 @@ desktop-file-install --delete-original \
--remove-category Application \
$RPM_BUILD_ROOT%{_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 William Moreno <williamjmorenor at gmail.com> -->
+<!--
+BugReportURL: https://code.google.com/p/pychess/issues/detail?id=915
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">pychess.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Chess client written entirely in Python</summary>
+ <description>
+ <p>
+ Pychess is a Chess client can start a game using its own engine
+ or any other engine installed on the computer is completely written
+ in Python from the User Interface to the game engine and can connect
+ to play games online with other people.
+ </p>
+ </description>
+ <url type="homepage">http://pychess.org</url>
+ <screenshots>
+ <screenshot type="default">http://pychess.org/images/feature-1.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%find_lang %{name}
%post
@@ -84,12 +118,16 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/*
%{_datadir}/pychess
%{_datadir}/gtksourceview-2.0/language-specs/pgn.lang
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/pixmaps/*
%{_mandir}/man?/*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.10.1-7
+- Add an AppData file for the software center
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.10.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/pychess.git/commit/?h=master&id=f2647755ad5cde6f333eca82dd5d2ff78db65e6a
More information about the scm-commits
mailing list