rhughes pushed to fillets-ng (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:24:59 UTC 2015


>From ea89d6d721df03c1470ecb907efcd1e159e6ec2a Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:09:12 +0000
Subject: Add an AppData file for the software center


diff --git a/fillets-ng.spec b/fillets-ng.spec
index 23a3cc6..dba856c 100644
--- a/fillets-ng.spec
+++ b/fillets-ng.spec
@@ -1,7 +1,7 @@
 Summary: Fish Fillets Next Generation, a puzzle game with 70 levels
 Name: fillets-ng
 Version: 1.0.1
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: GPLv2+
 Group: Amusements/Games
 URL: http://fillets.sourceforge.net/
@@ -57,6 +57,39 @@ desktop-file-install \
 %{__install} -D -p -m 0644 %{SOURCE2} \
     %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/fillets.png
 
+# 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/fillets.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+EmailAddress: ivo at danihelka.net
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">fillets.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>solve the puzzle and help the fish escape</summary>
+  <description>
+    <p>
+      Fish Fillets is a puzzle game where the player has to guide a fish through a series
+      of obstacles to escape the maze.
+      Fish Fillets features over 70 levels of puzzles and a comforting soundtrack.
+    </p>
+  </description>
+  <url type="homepage">http://fillets.sourceforge.net/</url>
+  <screenshots>
+    <screenshot type="default">http://fillets.sourceforge.net/img/screenshot/ffng-pyramid.png</screenshot>
+    <screenshot>http://fillets.sourceforge.net/img/screenshot/ffng-chest.png</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %clean
 %{__rm} -rf %{buildroot}
@@ -79,12 +112,16 @@ fi
 %defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING NEWS README TODO
 %{_bindir}/fillets
+%{_datadir}/appdata/fillets.appdata.xml
 %{_datadir}/applications/fillets.desktop
 %{_datadir}/icons/hicolor/32x32/apps/fillets.png
 %{_mandir}/man6/fillets.6*
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.0.1-5
+- Add an AppData file for the software center
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.1-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/fillets-ng.git/commit/?h=master&id=ea89d6d721df03c1470ecb907efcd1e159e6ec2a


More information about the scm-commits mailing list