rhughes pushed to colossus (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:20:59 UTC 2015
>From 9d1eb12170bd948221085093b1695e3d6bd2fd14 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:07:13 +0000
Subject: Add an AppData file for the software center
diff --git a/colossus.spec b/colossus.spec
index 09e618b..a200948 100644
--- a/colossus.spec
+++ b/colossus.spec
@@ -3,7 +3,7 @@ Name: colossus
%global revdate 20130917
Version: 0.14.0
%global branch %{nil}
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Allows people to play Titan against each other or AIs
Group: Amusements/Games
@@ -128,6 +128,41 @@ mkdir -p $RPM_BUILD_ROOT%{_javadocdir}
cp -rpv build/ant/javadoc $RPM_BUILD_ROOT%{_javadocdir}/%{name}
chmod -R og=u-w $RPM_BUILD_ROOT%{_javadocdir}
+# 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://sourceforge.net/p/colossus/feature-requests/225/
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">colossus.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>A fantasy board game with strategic and tactical battle elements</summary>
+ <description>
+ <p>
+ Colossus is a clone of Avalon Hill's "Titan" Board game.
+ </p>
+ <p>
+ It is a fantasy board game where you lead an army of mythological creatures
+ against other players.
+ </p>
+ </description>
+ <url type="homepage">http://colossus.sourceforge.net/</url>
+ <screenshots>
+ <screenshot type="default">http://colossus.sourceforge.net/pics/screenshots/Colossi.jpg</screenshot>
+ </screenshots>
+</application>
+EOF
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -144,6 +179,7 @@ touch --no-create %{_datadir}/pixmaps || :
%{_javadir}/*
%{_bindir}/*
%{_datadir}/pixmaps/*
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*
%doc docs/*
@@ -152,6 +188,9 @@ touch --no-create %{_datadir}/pixmaps || :
%{_javadocdir}/%{name}
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.14.0-3
+- Add an AppData file for the software center
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.14.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/colossus.git/commit/?h=master&id=9d1eb12170bd948221085093b1695e3d6bd2fd14
More information about the scm-commits
mailing list