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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:44:56 UTC 2015


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


diff --git a/gweled.spec b/gweled.spec
index 0f3084a..cb22e5c 100644
--- a/gweled.spec
+++ b/gweled.spec
@@ -1,6 +1,6 @@
 Name:           gweled
 Version:        0.9.1
-Release:        10.20130730git819bed%{?dist}
+Release:        11.20130730git819bed%{?dist}
 
 Summary:        Swapping gem game
 
@@ -71,6 +71,40 @@ desktop-file-install --delete-original \
 # gweled.timed.scores not shipped in 0.7, but needed
 #cp -p $RPM_BUILD_ROOT%{_localstatedir}/lib/games/gweled.easy.scores $RPM_BUILD_ROOT%{_localstatedir}/lib/games/gweled.timed.scores
 
+# 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 William Moreno <williamjmorenor at fedoraproject.org> -->
+<!--
+BugReportURL: https://bugs.launchpad.net/gweled/+bug/1322917
+SentUpstream: 2014-06-12
+-->
+<application>
+  <id type="desktop">gweled.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Align three identical gems to remove them from board</summary>
+  <description>
+    <p>
+      Gweled is a version for GNU / Linux of the popular mobile game called
+      Bejeweled or Diamond Mine.
+      The game consist in to move adjacent gems to align three or more vertically
+      or horizontally to remove them from the board.
+    </p>
+  </description>
+  <url type="homepage">http://launchpad.net/gweled</url>
+  <screenshots>
+    <screenshot type="default">http://gweled.org/images/screen1.png</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %find_lang %{name}
 
 %clean
@@ -83,6 +117,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS COPYING NEWS
 %attr(2551,root,games) %{_bindir}/%{name}
 %config(noreplace) %attr(0664,games,games) %{_localstatedir}/lib/games/*
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/pixmaps/*
 %{_datadir}/icons/*
@@ -90,6 +125,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/sounds/%{name}/
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.9.1-11.20130730git819bed
+- Add an AppData file for the software center
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.1-10.20130730git819bed
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gweled.git/commit/?h=master&id=ec63bea7aad3db15d30d46d610e359e37c26f0d7


More information about the scm-commits mailing list