Accepting request 755898 from home:mcepl:branches:devel:languages:python:Factory
- Unify packages among openSUSE:Factory and SLE versions. (bsc#1159035) - Add idle.desktop and idle.appdata.xml to provide IDLE in menus (bsc#1153830) - Add python2_split_startup Provide to make it possible to conflict older packages by shared-python-startup. OBS-URL: https://build.opensuse.org/request/show/755898 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=262
This commit is contained in:
parent
2c21a466d3
commit
7f4063f9b8
35
idle.appdata.xml
Normal file
35
idle.appdata.xml
Normal file
@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 2017 Zbigniew Jędrzejewski-Szmek -->
|
||||
<application>
|
||||
<id type="desktop">idle.desktop</id>
|
||||
<name>IDLE</name>
|
||||
<metadata_licence>CC0</metadata_licence>
|
||||
<project_license>Python-2.0</project_license>
|
||||
<summary>Python Integrated Development and Learning Environment</summary>
|
||||
<description>
|
||||
<p>
|
||||
IDLE is Python’s Integrated Development and Learning Environment.
|
||||
The GUI is uniform between Windows, Unix, and Mac OS X.
|
||||
IDLE provides an easy way to start writing, running, and debugging
|
||||
Python code.
|
||||
</p>
|
||||
<p>
|
||||
IDLE is written in pure Python, and uses the tkinter GUI toolkit.
|
||||
It provides:
|
||||
</p>
|
||||
<ul>
|
||||
<li>a Python shell window (interactive interpreter) with colorizing of code input, output, and error messages,</li>
|
||||
<li>a multi-window text editor with multiple undo, Python colorizing, smart indent, call tips, auto completion, and other features,</li>
|
||||
<li>search within any window, replace within editor windows, and search through multiple files (grep),</li>
|
||||
<li>a debugger with persistent breakpoints, stepping, and viewing of global and local namespaces.</li>
|
||||
</ul>
|
||||
</description>
|
||||
<url type="homepage">https://docs.python.org/2.7/library/idle.html</url>
|
||||
<screenshots>
|
||||
<screenshot type="default">http://in.waw.pl/~zbyszek/fedora/idle3-appdata/idle3-main-window.png</screenshot>
|
||||
<screenshot>http://in.waw.pl/~zbyszek/fedora/idle3-appdata/idle3-class-browser.png</screenshot>
|
||||
<screenshot>http://in.waw.pl/~zbyszek/fedora/idle3-appdata/idle3-code-viewer.png</screenshot>
|
||||
</screenshots>
|
||||
<update_contact>zbyszek@in.waw.pl</update_contact>
|
||||
</application>
|
11
idle.desktop
Normal file
11
idle.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Name=IDLE
|
||||
Comment=Python 2.7 Integrated Development and Learning Environment
|
||||
Exec=idle %F
|
||||
TryExec=idle
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=idle
|
||||
Categories=Development;IDE;
|
||||
MimeType=text/x-python;
|
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 11 14:35:46 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Unify packages among openSUSE:Factory and SLE versions.
|
||||
(bsc#1159035)
|
||||
- Add idle.desktop and idle.appdata.xml to provide IDLE in menus
|
||||
(bsc#1153830)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 4 18:12:17 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add python2_split_startup Provide to make it possible to
|
||||
conflict older packages by shared-python-startup.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 22 13:10:03 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 11 14:35:46 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Unify packages among openSUSE:Factory and SLE versions.
|
||||
(bsc#1159035)
|
||||
- Add idle.desktop and idle.appdata.xml to provide IDLE in menus
|
||||
(bsc#1153830)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 4 18:12:17 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add python2_split_startup Provide to make it possible to
|
||||
conflict older packages by shared-python-startup.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 22 13:10:03 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 11 14:35:46 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Unify packages among openSUSE:Factory and SLE versions.
|
||||
(bsc#1159035)
|
||||
- Add idle.desktop and idle.appdata.xml to provide IDLE in menus
|
||||
(bsc#1153830)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 4 18:12:17 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add python2_split_startup Provide to make it possible to
|
||||
conflict older packages by shared-python-startup.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 22 13:10:03 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
28
python.spec
28
python.spec
@ -29,6 +29,8 @@ Source0: http://www.python.org/ftp/python/%{version}/%{tarname}.tar.xz
|
||||
Source1: README.SUSE
|
||||
Source8: sle_tls_checks_policy.py
|
||||
#Source11: testfiles.tar.bz2
|
||||
Source50: idle.appdata.xml
|
||||
Source51: idle.desktop
|
||||
# issues with copyrighted Unicode testing files
|
||||
|
||||
# !!!!!!!!!!!!!!
|
||||
@ -100,14 +102,25 @@ BuildRequires: sqlite-devel
|
||||
BuildRequires: tk-devel
|
||||
BuildRequires: xz
|
||||
BuildRequires: pkgconfig(x11)
|
||||
# for %%{_datadir}/application and %%{_datadir}/mime/packages
|
||||
BuildRequires: filesystem
|
||||
BuildRequires: update-desktop-files
|
||||
# for %%{_datadir}/icons/hicolor directories
|
||||
BuildRequires: hicolor-icon-theme
|
||||
%if 0%{?suse_version} >= 1500
|
||||
BuildRequires: appstream-glib
|
||||
%endif
|
||||
%define python_version %(echo %{tarversion} | head -c 3)
|
||||
%define idle_name idle
|
||||
Requires: python-base = %{version}
|
||||
%if %{suse_version} == 1315 && !0%{?is_opensuse}
|
||||
Recommends: python-strict-tls-check
|
||||
%endif
|
||||
# To make older versions of this package to conflict with
|
||||
# shared-python-startup I need a symbol to conflict with
|
||||
Provides: %{name} = %{python_version}
|
||||
Provides: python2 = %{version}
|
||||
Provides: python2_split_startup
|
||||
Obsoletes: python-elementtree
|
||||
Obsoletes: python-nothreads
|
||||
Obsoletes: python-sqlite
|
||||
@ -429,6 +442,16 @@ install -d -m755 %{buildroot}%{_sysconfdir}/%{idle_name}
|
||||
done
|
||||
)
|
||||
|
||||
# Install .desktop, mime and appdata files from upstream tarball
|
||||
%if 0%{?suse_version} >= 1500
|
||||
install -Dm0644 %{SOURCE50} %{buildroot}/%{_datadir}/mime/packages/idle.appdata.xml
|
||||
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/mime/packages/idle.appdata.xml
|
||||
%endif
|
||||
install -D -m 0644 Lib/idlelib/Icons/idle_16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/idle.png
|
||||
install -D -m 0644 Lib/idlelib/Icons/idle_32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/idle.png
|
||||
install -D -m 0644 Lib/idlelib/Icons/idle_48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/idle.png
|
||||
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE51}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
@ -444,6 +467,11 @@ install -d -m755 %{buildroot}%{_sysconfdir}/%{idle_name}
|
||||
%doc Lib/idlelib/ChangeLog
|
||||
%{_libdir}/python%{python_version}/idlelib
|
||||
%attr(755, root, root) %{_bindir}/%{idle_name}
|
||||
%if 0%{?suse_version} >= 1500
|
||||
%{_datadir}/mime/packages/idle.appdata.xml
|
||||
%endif
|
||||
%{_datadir}/applications/idle.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/idle.png
|
||||
|
||||
%files demo
|
||||
%defattr(644, root, root, 755)
|
||||
|
Loading…
x
Reference in New Issue
Block a user