rhughes pushed to flaw (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:25:43 UTC 2015
>From 797951aad90d0bb3f5e442a33eb1f9281d1a718b Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:09:43 +0000
Subject: Add an AppData file for the software center
diff --git a/flaw.spec b/flaw.spec
index e98137e..f94e0ef 100644
--- a/flaw.spec
+++ b/flaw.spec
@@ -2,7 +2,7 @@
Name: flaw
Version: 1.3.2a
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: Free top-down wizard battle game
Group: Amusements/Games
License: GPLv3+
@@ -42,6 +42,52 @@ make %{?_smp_mflags}
%install
rm -rf %{buildroot}
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 Edgar Muniz Berlinck <edgar.vv at gmail.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/flaw/feature-requests/3/
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">flaw.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Casual Wizards Battle Game</summary>
+ <description>
+ <p>
+ Flaw is a game where you control a wizard and your goal is to survive as
+ much as you can.
+ </p>
+ <p>
+ In addition to the fireballs that arise increasingly in larger quantities,
+ there are other wizards trying to kill you.
+ </p>
+ <p>
+ The game has some items that give you special abilities to defend yourself or attack your enemies.
+ </p>
+ <p>
+ Flaw can be played on single-player mode or with your friends.
+ </p>
+ </description>
+ <url type="homepage">http://flaw.sourceforge.net/</url>
+ <screenshots>
+ <screenshot type="default">http://flaw.sourceforge.net/images/ingame1.png</screenshot>
+ <screenshot>http://flaw.sourceforge.net/images/ingame3.png</screenshot>
+ <screenshot>http://flaw.sourceforge.net/images/ingame2.png</screenshot>
+ <screenshot>http://flaw.sourceforge.net/images/menu.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%find_lang %{name}
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
@@ -52,11 +98,15 @@ rm -rf %{buildroot}
%{_bindir}/flaw
%{_datadir}/flaw
%{_datadir}/pixmaps/flaw.png
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/flaw.desktop
%exclude %{_pkgdocdir}/INSTALL
%doc %{_pkgdocdir}
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.3.2a-10
+- Add an AppData file for the software center
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.2a-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/flaw.git/commit/?h=master&id=797951aad90d0bb3f5e442a33eb1f9281d1a718b
More information about the scm-commits
mailing list