musuruan pushed to edgar (f21). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Sat Mar 28 16:26:24 UTC 2015


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


diff --git a/edgar.spec b/edgar.spec
index b34af90..d692e9e 100644
--- a/edgar.spec
+++ b/edgar.spec
@@ -2,7 +2,7 @@
 
 Name:           edgar
 Version:        1.19
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A platform game
 
 # edgar now contains sounds licensed under a "good" Fedora license:
@@ -71,6 +71,46 @@ desktop-file-install \
   --dir %{buildroot}%{_datadir}/applications \
   %{buildroot}%{_datadir}/applications/%{name}.desktop
 
+# 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/legendofedgar/bugs/111/
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">edgar.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>2D Adventure Platform Game</summary>
+  <description>
+    <p>
+      The Legend of Edgar is a 2D platform game.
+      Your hero must save his dad from the hands of the evil sorcerer.
+      To help Edgar in his mission you must to walk around a big world, solve
+      puzzles and kill a lot of powerful enemies.
+    </p>
+    <p>
+      A great adventure awaits for you!
+    </p>
+  </description>
+  <url type="homepage">http://www.parallelrealities.co.uk/p/legend-of-edgar.html</url>
+  <screenshots>
+    <screenshot type="default">http://2.bp.blogspot.com/-kfnbzImCAjE/Tn9cLGchaHI/AAAAAAAAAyE/2JrSoBAjgU4/s320/edgar31.png</screenshot>
+    <screenshot>http://4.bp.blogspot.com/-Qhby6FCqV0o/Tn9cKdIYWaI/AAAAAAAAAyA/qbaz8fgeZZg/s320/edgar25.png</screenshot>
+    <screenshot>http://2.bp.blogspot.com/-mDf31lIEh0U/Tn9cLhPrKAI/AAAAAAAAAyI/O3nMO-9BueA/s320/edgar36.png</screenshot>
+    <screenshot>http://1.bp.blogspot.com/-MGz0Fsc3HM4/Tn9cMfkvnMI/AAAAAAAAAyM/c9Elqdz2iGU/s320/edgar40.png</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %find_lang %{name}
 
 
@@ -92,6 +132,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %files -f %{name}.lang
 %{_bindir}/%{name}
 %{_datadir}/%{name}
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*.desktop
 %{_datadir}/icons/hicolor/*/apps/*
 %{_mandir}/man6/%{name}.6*
@@ -99,6 +140,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.19-2
+- Add an AppData file for the software center
+
 * Fri Dec 19 2014 Andrea Musuruane <musuruan at gmail.com> - 1.19-1
 - Updated to upstream 1.19-1
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/edgar.git/commit/?h=f21&id=764a51e2ab6630bbadba4069ea2b8f6923539f41


More information about the scm-commits mailing list