xavierb pushed to openalchemist (f21). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 23:16:39 UTC 2015


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


diff --git a/openalchemist.spec b/openalchemist.spec
index 2d15388..a5ca627 100644
--- a/openalchemist.spec
+++ b/openalchemist.spec
@@ -1,6 +1,6 @@
 Name:           openalchemist
 Version:        0.4
-Release:        14%{?dist}
+Release:        15%{?dist}
 Summary:        Reflection game
 Group:          Amusements/Games
 License:        GPLv2+ and CC-BY-SA
@@ -53,6 +53,38 @@ install -p -m 644 data/logo_svg.svg \
 mv .desktop openalchemist.desktop
 desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications openalchemist.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 Eduardo Mayorga <e at mayorgalinux.com> -->
+<!--
+EmailAddress: contact at openalchemist.com
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">openalchemist.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Puzzle game featuring chemicals</summary>
+  <description>
+    <p>
+      OpenAlchemist is a tile-matching puzzle game in which appear the chemical elements.
+      OpenAlchemist is an easy-to-play game suitable for children and young people.
+      It aims for reflection, adventure and suspense.
+    </p>
+  </description>
+  <url type="homepage">http://www.openalchemist.com</url>
+  <screenshots>
+    <screenshot type="default">http://www.openalchemist.com/img/aqua.png</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %post
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -73,10 +105,14 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_bindir}/openalchemist-config
 %{_datadir}/openalchemist
 %{_datadir}/icons/hicolor/scalable/apps/openalchemist.svg
+%{_datadir}/appdata/*%{name}.appdata.xml
 %{_datadir}/applications/*openalchemist.desktop
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.4-15
+- Add an AppData file for the software center
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4-14
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/openalchemist.git/commit/?h=f21&id=056442ed4a0b26f1b305163e4eccc8fe19cdcc65


More information about the scm-commits mailing list