terjeros pushed to bpython (f22). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Apr 8 18:37:16 UTC 2015


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


diff --git a/bpython.spec b/bpython.spec
index 34cc8d4..476ef0c 100644
--- a/bpython.spec
+++ b/bpython.spec
@@ -3,7 +3,7 @@
 Name:          bpython
 Summary:       Fancy curses interface to the Python interactive interpreter
 Version:       0.13.2
-Release:       1%{?dist}
+Release:       2%{?dist}
 URL:           http://www.bpython-interpreter.org/
 Group:         Development/Libraries
 License:       MIT
@@ -128,6 +128,44 @@ install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
 # Not support for curtsies yet
 rm -f %{buildroot}%{_bindir}/bpython-curtsies
 
+# 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: bob at bpython-interpreter.org
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">bpython.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Graphical interface for the Python console</summary>
+  <description>
+    <p>
+      bpython is a graphical alternative for the Python console.
+      It provides a number of additional features that are not possible with the
+      regular (terminal based) Python console, including: syntax highlighting,
+      command autocompletion, parameter lists for built in Python functions,
+      and the ability to save code to a file.
+    </p>
+  </description>
+  <url type="homepage">http://www.bpython-interpreter.org/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/bpython/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
+
 %files
 %doc AUTHORS CHANGELOG LICENSE ROADMAP TODO
 %doc light.theme sample-config sample.theme
@@ -142,6 +180,7 @@ rm -f %{buildroot}%{_bindir}/bpython-curtsies
 %files gtk
 %doc AUTHORS CHANGELOG LICENSE ROADMAP TODO
 %{_bindir}/%{name}-gtk
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 
 %if 0%{?with_python3}
@@ -156,6 +195,9 @@ rm -f %{buildroot}%{_bindir}/bpython-curtsies
 %endif # with_python3
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.13.2-2
+- Add an AppData file for the software center
+
 * Mon Jan 12 2015 Terje Rosten <terje.rosten at ntnu.no> - 0.13.2-1
 - 0.13.2
 - Swap bpython3 symlinks
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/bpython.git/commit/?h=f22&id=439969c8234cee86f4b00a92151a0e548eae3e05


More information about the scm-commits mailing list