rhughes pushed to zaz (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 17:05:47 UTC 2015
>From f9838004e3c7e4c91358744798934902e5bd194b Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:47:33 +0000
Subject: Add an AppData file for the software center
diff --git a/zaz.spec b/zaz.spec
index cad99bf..2371052 100644
--- a/zaz.spec
+++ b/zaz.spec
@@ -1,6 +1,6 @@
Name: zaz
Version: 1.0.0
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: A puzzle game where the player has to arrange balls in triplets
# Music released under CC-BY-SA
@@ -64,6 +64,44 @@ convert $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.xpm \
$RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
rm $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.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 Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl> -->
+<!--
+BugReportURL: https://sourceforge.net/p/zaz/discussion/996643/thread/b803210f/
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">zaz.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Rearrange flowing balls to make triplets</summary>
+ <description>
+ <p>
+ Zaz is a mouse-operated arcade puzzle game where balls have to be
+ rearranged by quickly pulling one out of the sequence and allowing it to
+ jump back in in a different place.
+ Triplets "explode" and delay the inevitable moment when there are too many
+ balls and the player loses.
+ </p>
+ </description>
+ <url type="homepage">http://sourceforge.net/projects/zaz/</url>
+ <screenshots>
+ <screenshot width="642" height="520" type="default">http://in.waw.pl/~zbyszek/fedora/Zaz_easy_level.png</screenshot>
+ <screenshot width="642" height="520" >http://in.waw.pl/~zbyszek/fedora/Zaz_hard_level.png</screenshot>
+ <screenshot width="642" height="520" >http://in.waw.pl/~zbyszek/fedora/Zaz_main_menu.png</screenshot>
+ <screenshot width="642" height="520" >http://in.waw.pl/~zbyszek/fedora/Zaz_splashscreen.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
# Validate desktop file
desktop-file-validate \
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
@@ -89,12 +127,16 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%doc AUTHORS ChangeLog COPYING data/copyright.txt
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.0.0-12
+- Add an AppData file for the software center
+
* Fri Dec 19 2014 Andrea Musuruane <musuruan at gmail.com> - 1.0.0-11
- Converted xpm icon to png to appease appdata (#1175972)
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/zaz.git/commit/?h=master&id=f9838004e3c7e4c91358744798934902e5bd194b
More information about the scm-commits
mailing list