rhughes pushed to manaplus (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:49:50 UTC 2015
>From 0a5f02e0e7a0c1a183c6723a4c5faef6025f62d3 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:37:56 +0000
Subject: Add an AppData file for the software center
diff --git a/manaplus.spec b/manaplus.spec
index cc8d1e9..ff33a29 100644
--- a/manaplus.spec
+++ b/manaplus.spec
@@ -1,6 +1,6 @@
Name: manaplus
Version: 1.3.10.27.2
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: OpenSource 2D MMORPG client for Evol Online and The Mana World
License: GPLv2+
Url: http://manaplus.evolonline.org/
@@ -68,11 +68,47 @@ ln -s %{_datadir}/fonts/liberation/LiberationSans-Regular.ttf %{buildroot}%{_dat
ln -s %{_datadir}/fonts/mplus/mplus-1p-bold.ttf %{buildroot}%{_datadir}/%{name}/data/fonts/mplus-1p-bold.ttf
ln -s %{_datadir}/fonts/mplus/mplus-1p-regular.ttf %{buildroot}%{_datadir}/%{name}/data/fonts/mplus-1p-regular.ttf
+# 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://github.com/themanaworld/tmwa-client-data/issues/104
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">manaplus.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>2D Adventure MMORPG</summary>
+ <description>
+ <p>
+ Free 2D MMORPG.
+ You can choose to join a Guild, become stronger and travel new lands as one
+ adventurer or live in peace with your friends.
+ </p>
+ </description>
+ <url type="homepage">http://manaplus.org/</url>
+ <screenshots>
+ <screenshot type="default">http://manaplus.org/_media/manaplus_screenshot_8.png</screenshot>
+ <screenshot>http://manaplus.org/_media/manaplus_screenshot_11.png</screenshot>
+ <screenshot>http://manaplus.org/_media/manaplus_screenshot_15.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%find_lang %{name}
%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING docs/FAQ.txt README
%{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}test.desktop
%{_datadir}/%{name}
@@ -81,6 +117,9 @@ ln -s %{_datadir}/fonts/mplus/mplus-1p-regular.ttf %{buildroot}%{_datadir}/%{nam
%{_mandir}/man6/%{name}test.6*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.3.10.27.2-6
+- Add an AppData file for the software center
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.10.27.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/manaplus.git/commit/?h=master&id=0a5f02e0e7a0c1a183c6723a4c5faef6025f62d3
More information about the scm-commits
mailing list