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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:43:01 UTC 2015


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


diff --git a/gnusim8085.spec b/gnusim8085.spec
index 9e9bbec..777a40c 100644
--- a/gnusim8085.spec
+++ b/gnusim8085.spec
@@ -1,6 +1,6 @@
 Name:		gnusim8085
 Version:	1.3.7
-Release:	9%{?dist}
+Release:	10%{?dist}
 Summary:	Graphical simulator for 8085 assembly language
 
 Group:		Applications/Engineering
@@ -44,6 +44,43 @@ desktop-file-install --vendor "" \
 --dir %{buildroot}%{_datadir}/applications/ \
 %{buildroot}%{_datadir}/applications/GNUSim8085.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/GNUSim8085.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://bugs.launchpad.net/gnusim8085/+bug/1322687
+SentUpstream: 2014-07-02
+-->
+<application>
+  <id type="desktop">GNUSim8085.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Intel 8085 microprocessor simulator</summary>
+  <description>
+    <p>
+      GNUSim8085 is a simulator for that emulates the Intel 8085 -- an 8 bit
+      microprocessor that was first released in 1977. This simulator features
+      a keypad for writing assembly code with ease, as well as stack, memory
+      and port viewers which are useful for debugging 8085 assembly code.
+    </p>
+  </description>
+  <url type="homepage">http://gnusim8085.org/</url>
+  <url type="bugtracker">https://bugs.launchpad.net/gnusim8085</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/GNUSim8085/a.png</screenshot>
+  </screenshots>
+  <!-- FIXME: change this to an upstream email address for spec updates
+  <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+   -->
+</application>
+EOF
 
 %find_lang %{name}
 
@@ -68,12 +105,16 @@ rm -rf %{buildroot}
 %{_pkgdocdir}
 %{_mandir}/man1/%{name}.1*
 %{_bindir}/gnusim8085
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/GNUSim8085.desktop
 %{_datadir}/gnusim8085/
 %{_datadir}/pixmaps/gnusim8085/
 %{_datadir}/icons/hicolor/scalable/apps/gnusim8085.svg
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.3.7-10
+- Add an AppData file for the software center
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.7-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gnusim8085.git/commit/?h=master&id=11dc841609d020a188112e244033e74ed1574e26


More information about the scm-commits mailing list