rhughes pushed to hexglass (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:45:45 UTC 2015
>From 7259184d5c4373e5aefba06f9ce24aec8de4a798 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:35:20 +0000
Subject: Add an AppData file for the software center
diff --git a/hexglass.spec b/hexglass.spec
index 8569856..83608d0 100644
--- a/hexglass.spec
+++ b/hexglass.spec
@@ -1,6 +1,6 @@
Name: hexglass
Version: 1.2.1
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: Block falling puzzle game based on a hexagonal grid
Summary(de): Puzzlespiel mit fallenden Blöcken auf einem sechseckigen Raster
Group: Amusements/Games
@@ -50,6 +50,46 @@ install -d %{buildroot}%{_datadir}/%{name}/translations
install -m 644 -p translations/*.qm %{buildroot}%{_datadir}/%{name}/translations
install -D -m 644 -p resources/about_icon.xpm %{buildroot}%{_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 Tim Waugh <twaugh at redhat.com> -->
+<!--
+BugReportURL: https://code.google.com/p/hexglass/issues/detail?id=1
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">hexglass.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Drop shapes to the bottom without leaving gaps</summary>
+ <description>
+ <p>
+ In HexGlass the object is to rotate shaped pieces as the fall to the bottom
+ so that they don't leave gaps.
+ The pieces are made of small numbers of hexagons stuck together, and it is
+ hard to work out the right way to rotate each piece as there are 6
+ possible orientations.
+ </p>
+ <p>
+ When a row is completed without any gaps, it is removed and all the
+ hexagonal blocks above it move down one row.
+ As the pieces fall faster, make sure not to let the screen fill up!
+ </p>
+ </description>
+ <url type="homepage">http://code.google.com/p/hexglass</url>
+ <screenshots>
+ <screenshot type="default">http://hexglass.googlecode.com/svn/wiki/preview.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%find_lang %{name} --with-qt
desktop-file-install \
@@ -62,12 +102,16 @@ desktop-file-install \
%{_bindir}/hexglass
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/translations/
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.2.1-10
+- Add an AppData file for the software center
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/hexglass.git/commit/?h=master&id=7259184d5c4373e5aefba06f9ce24aec8de4a798
More information about the scm-commits
mailing list