rhughes pushed to ccgo (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:19:57 UTC 2015
>From 7a2f77a1ab3d9eb9c230ae0f0e8918eabfc15611 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:06:42 +0000
Subject: Add an AppData file for the software center
diff --git a/ccgo.spec b/ccgo.spec
index a8b7243..648f734 100644
--- a/ccgo.spec
+++ b/ccgo.spec
@@ -1,6 +1,6 @@
Name: ccgo
Version: 0.3.6.4
-Release: 12%{?dist}
+Release: 13%{?dist}
Summary: An IGS (Internet Go Server) client written in C++
Group: Amusements/Games
License: GPLv3+
@@ -35,16 +35,53 @@ make %{?_smp_mflags}
%install
desktop-file-validate %{name}.desktop
make install DESTDIR=$RPM_BUILD_ROOT
+
+# 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: cjj at u.washington.edu
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">ccgo.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Play a game of "Go" against your computer or other players on the internet</summary>
+ <description>
+ <p>
+ ccgo allows you to play the popular chinese strategy game "Go" agains
+ your computer or other players on the internet.
+ </p>
+ </description>
+ <url type="homepage">http://ccdw.org/~cjj/prog/ccgo/</url>
+ <screenshots>
+ <screenshot type="default">http://ccdw.org/~cjj/prog/ccgo/screen_shot.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%find_lang %{name}
%files -f %{name}.lang
%{_bindir}/*
%{_mandir}/man*/*
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*
%doc AUTHORS COPYING README
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.3.6.4-13
+- Add an AppData file for the software center
+
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.6.4-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ccgo.git/commit/?h=master&id=7a2f77a1ab3d9eb9c230ae0f0e8918eabfc15611
More information about the scm-commits
mailing list