rhughes pushed to fbg2 (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:24:36 UTC 2015
>From 92f1cde812f30997434b7b19f0e49b491696a7cb Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:08:59 +0000
Subject: Add an AppData file for the software center
diff --git a/fbg2.spec b/fbg2.spec
index 58e7a3c..d834280 100644
--- a/fbg2.spec
+++ b/fbg2.spec
@@ -1,6 +1,6 @@
Name: fbg2
Version: 0.4
-Release: 12%{?dist}
+Release: 13%{?dist}
Summary: A falling block stacking game
Group: Amusements/Games
# Code is GPLv2+, music and graphics are CC-BY-SA
@@ -47,16 +47,55 @@ make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
+
+# 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 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/fbg/feature-requests/12/
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">fbg2.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>move the falling blocks to create lines</summary>
+ <description>
+ <p>
+ The Falling Block Game is a game where groups of blocks of certain
+ predefined shapes fall from the top of the screen, and the player
+ has to rotate and move them to create lines of blocks that then
+ disappear when a line is complete.
+ </p>
+ </description>
+ <url type="homepage">http://sourceforge.net/projects/fbg/</url>
+ <screenshots>
+ <screenshot type="default">http://fbg.sourceforge.net/releases/images/fbg2-v0.4-released/fbgscore2.jpg</screenshot>
+ </screenshots>
+</application>
+EOF
+
desktop-file-validate %{buildroot}%{_datadir}/applications/fbg2.desktop
%files
%doc License.txt ChangeLog README.music
%{_bindir}/%{name}
%{_datadir}/%{name}/
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.4-13
+- Add an AppData file for the software center
+
* Fri Oct 31 2014 Tom Callaway <spot at fedoraproject.org> - 0.4-12
- add 64x64 png icon (bz1157527)
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/fbg2.git/commit/?h=master&id=92f1cde812f30997434b7b19f0e49b491696a7cb
More information about the scm-commits
mailing list