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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:54:04 UTC 2015


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


diff --git a/openmsx.spec b/openmsx.spec
index 9ce394c..5f9324c 100644
--- a/openmsx.spec
+++ b/openmsx.spec
@@ -1,6 +1,6 @@
 Name:           openmsx
 Version:        0.11.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        An emulator for the MSX home computer system
 Group:          Applications/Emulators
 License:        GPL+
@@ -95,6 +95,45 @@ done
 desktop-file-install --dir $RPM_BUILD_ROOT%{_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: BUGTRACKER DEAD
+SentUpstream: 2014-09-25
+-->
+<application>
+  <id type="desktop">openmsx.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Emulate all aspects of the MSX with 100% accuracy</summary>
+  <description>
+    <p>
+      MSX is an old Z80-based family of home computers as an attempt to establish
+      a single standard in home computing similar to VHS in video.
+    </p>
+    <p>
+      The MSX standard died from year 1988.
+    </p>
+    <p>
+      The MSX standard has been designed by a company called ASCII in Cooperation
+      with Microsoft which has provided a firmware version of his extended BASIC
+      (called "MicroSoft eXtended BASIC") for the machine, which explains the MSX name.
+    </p>
+  </description>
+  <url type="homepage">http://openmsx.sourceforge.net</url>
+  <screenshots>
+    <screenshot type="default">http://openmsx.sourceforge.net/images/screenshots/mlimit3.png</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %post
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -113,6 +152,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %doc %{_docdir}/%{name}
 %{_bindir}/%{name}
 %{_datadir}/%{name}
+%{_datadir}/appdata/*%{name}.appdata.xml
 %{_datadir}/applications/*%{name}.desktop
 %{_datadir}/icons/hicolor/*/apps/%{name}.png
 %{_mandir}/man1/%{name}.1.gz
@@ -121,6 +161,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.11.0-2
+- Add an AppData file for the software center
+
 * Fri Nov 21 2014 Hans de Goede <hdegoede at redhat.com> - 0.11.0-1
 - New upstream release 0.11.0 (rhbz#1163192)
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/openmsx.git/commit/?h=master&id=1ea55a678c127961a7858dc2ed0b32881c42bf35


More information about the scm-commits mailing list