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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:22:27 UTC 2015


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


diff --git a/dreampie.spec b/dreampie.spec
index 5406ea7..ac97321 100644
--- a/dreampie.spec
+++ b/dreampie.spec
@@ -10,7 +10,7 @@ sys.stdout.write(sys.version[:3])")}
 
 Name:           dreampie
 Version:        1.1.1
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        A graphical cross-platform interactive Python shell
 
 Group:          Development/Tools
@@ -74,6 +74,40 @@ rm -rf %{buildroot}
 %py_byte_compile %{__python3} %{buildroot}%{_datadir}/%{name}/subp-py3/
 %py_byte_compile %{__python} %{buildroot}%{python_sitelib}/%{name}lib/
 
+# 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> -->
+<!--
+BugReportURL: https://github.com/noamraph/dreampie/issues/49
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">dreampie.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Interactive Python console</summary>
+  <description>
+    <p>
+      dreampie is a graphical alternative for the Python interactive console. It provides a number of additional features that are not possible with the regular (terminal based) Python console, including: syntax highlighting, parameter lists for built in Python functions, and the ability to save code to a file.
+    </p>
+  </description>
+  <url type="homepage">http://www.dreampie.org/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/dreampie/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
+
 desktop-file-validate \
 %{buildroot}%{_datadir}/applications/%{name}.desktop
 
@@ -88,6 +122,7 @@ rm -rf %{buildroot}
 %exclude %{_datadir}/%{name}/subp-py3
 %{_mandir}/man?/%{name}.*
 %{_datadir}/pixmaps/%{name}*
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{python_sitelib}/dreampielib
 %{python_sitelib}/%{name}-*.egg-info
@@ -97,6 +132,9 @@ rm -rf %{buildroot}
 %{_datadir}/%{name}/subp-py3
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.1.1-8
+- Add an AppData file for the software center
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.1-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list