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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:24:47 UTC 2015


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


diff --git a/fbzx.spec b/fbzx.spec
index 2f3fed7..bb1b351 100644
--- a/fbzx.spec
+++ b/fbzx.spec
@@ -1,6 +1,6 @@
 Name:           fbzx
 Version:        2.10.0
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        A ZX Spectrum emulator for FrameBuffer
 
 Group:          Applications/Emulators
@@ -67,6 +67,39 @@ desktop-file-install \
 # install Fedora README
 install -pm0644 %{SOURCE2} README.Fedora
 
+# 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 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+EmailAddress: raster at rastersoft.com
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">fbzx.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary> a Sinclair Spectrum emulator</summary>
+  <description>
+    <p>
+      FBZX is a Sinclair Spectrum emulator that accurately emulates the screen,
+      sound and keyboard of many Spectrum devices including Issue 2 and Issue 3
+      of the original Spectrum, the classic and the Spanish 128K versions,
+      and the Amstrad Plus 2 and 2A.
+    </p>
+  </description>
+  <url type="homepage">http://www.rastersoft.com/fbzx.html</url>
+  <screenshots>
+    <screenshot type="default">http://www.rastersoft.com/imagen/fbzx.png</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %clean
 rm -rf %{buildroot}
@@ -92,11 +125,15 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_bindir}/%{name}
 %{_datadir}/%{name}
 %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %doc AMSTRAD CAPABILITIES COPYING FAQ README* TODO VERSIONS
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.10.0-6
+- Add an AppData file for the software center
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.10.0-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/fbzx.git/commit/?h=master&id=830d872b19d213d2fd74cd3b836319e01b4ce526


More information about the scm-commits mailing list