rhughes pushed to python3-iep (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:46:02 UTC 2015
>From 689b1829eb4d041063f6a7c053854a832fcbd557 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:35:33 +0000
Subject: Add an AppData file for the software center
diff --git a/python3-iep.spec b/python3-iep.spec
index 7375cb0..1fbfa40 100644
--- a/python3-iep.spec
+++ b/python3-iep.spec
@@ -1,6 +1,6 @@
Name: python3-iep
Version: 3.5
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: The interactive editor for Python
Group: Development/Tools
@@ -66,6 +66,55 @@ desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \
%{SOURCE1}
+# 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/iep.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Almar Klein -->
+<!--
+BugReportURL: https://bitbucket.org/iep-project/iep/issue/300/please-create-an-appdata-file-for-iep
+-->
+<application>
+ <id type="desktop">iep.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>BSD-2-Clause</project_license>
+ <name>Interactive Editor for Python</name>
+ <summary>A Python IDE aimed at simplicity and interactivity</summary>
+ <description>
+ <p>
+ IEP (pronounced as eep) is a cross-platform Python IDE focused on
+ interactivity and introspection, which makes it very suitable for
+ scientific computing. Its practical design is aimed at simplicity
+ and efficiency.
+ </p>
+ <p>
+ It consists of two main components, the editor and the shell, and uses
+ a set of pluggable tools to help the programmer in various ways. Some
+ example tools are source structure, project manager, interactive help,
+ workspace ...
+ </p>
+ <p>
+ IEP is written in (pure) Python 3 and uses the Qt GUI toolkit. Binaries
+ are provided for all major operating system. After installing IEP, it
+ can be used to execute code on any Python version available on your
+ system (Python 2.4 - 3.x, including Pypy).
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default" width="1244" height="700">http://www.iep-project.org/_static/screenshots/screen-default-16-9.png</screenshot>
+ <screenshot width="1004" height="664">http://www.iep-project.org/_static/screenshots/screen00_win.png</screenshot>
+ </screenshots>
+ <url type="homepage">http://iep-project.org</url>
+ <updatecontact>almar.klein at gmail.com</updatecontact>
+</application>
+EOF
+
%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/iep.desktop
@@ -88,9 +137,13 @@ fi
%{python3_sitelib}/iep
%{python3_sitelib}/iep-%{version}-py?.?.egg-info
%{_datadir}/icons/hicolor/*/apps/iep.png
+%{_datadir}/appdata/iep.appdata.xml
%{_datadir}/applications/iep.desktop
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 3.5-3
+- Add an AppData file for the software center
+
* Sat Jan 17 2015 Scott K Logan <logans at cottsay.net> - 3.5-2
- Add upstream patch to fix previous tab selection RHBZ#1161856
- Add upstream patch to fix the import wizard RHBZ#1181827
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/python3-iep.git/commit/?h=master&id=689b1829eb4d041063f6a7c053854a832fcbd557
More information about the scm-commits
mailing list