diff --git a/python-python-xlib.changes b/python-python-xlib.changes index 2b1272b..3564a92 100644 --- a/python-python-xlib.changes +++ b/python-python-xlib.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Tue Nov 27 09:04:39 UTC 2018 - sor.alexei@meowr.ru + +- Update to version 0.23 (changes since 0.19): + * Fix unclosed file in Xauth implementation. + * Fix support for Window.set_wm_transient_for. + * Fix support for Drawable.put_image / Drawable.get_image. + * Use Latin-1 for decoding strings in Python 3 (same as Python 2). + * Fix Python 3 warnings about array.tostring() (deprecated). + * When DISPLAY does not specify a protocol, and the implicit Unix + socket connection fails, fallback to TCP (mimicking XCB's + behaviour). + * Fix Display.change_pointer_control implementation. + * Fix Drawable.put_pil_image implementation. + * Don't bundle a copy of texi2html to build the HTML + documentation, but use the currently installed version instead. + * Improve response processing performance: reduce the number of + `socket.recv` calls needed to receive a full response. +- Remove python-xlib-0.14-increase-receiving-buffer.patch: no + longer needed, see commit 1958a82. + ------------------------------------------------------------------- Thu Aug 31 06:43:36 UTC 2017 - toddrme2178@gmail.com diff --git a/python-python-xlib.spec b/python-python-xlib.spec index c7a37c8..4919534 100644 --- a/python-python-xlib.spec +++ b/python-python-xlib.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-xlib # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,34 +12,33 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_with test -%define X_display ":98" +%define X_display ":98" %define oldpython python +%bcond_with test Name: python-python-xlib -Version: 0.19 +Version: 0.23 Release: 0 Summary: Python X11 interface -License: LGPL-2.1+ +License: LGPL-2.1-or-later Group: Development/Libraries/Python -Url: https://github.com/python-xlib/python-xlib +URL: https://github.com/python-xlib/python-xlib Source: https://files.pythonhosted.org/packages/source/p/python-xlib/python-xlib-%{version}.tar.bz2 -# PATCH-FIX-UPSTREAM python-xlib-0.14-increase-receiving-buffer.patch deb#357507 -Patch0: python-xlib-0.14-increase-receiving-buffer.patch BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six >= 1.10.0} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-six >= 1.10.0 +BuildArch: noarch %if %{with test} BuildRequires: xorg-x11-server %endif -Requires: python-six >= 1.10.0 %ifpython2 Provides: %{oldpython}-xlib = %{version} Obsoletes: %{oldpython}-xlib < %{version} @@ -48,8 +47,6 @@ Obsoletes: %{oldpython}-xlib < %{version} Provides: python3-xlib = %{version} Obsoletes: python3-xlib < %{version} %endif -BuildArch: noarch - %python_subpackages %description @@ -58,7 +55,6 @@ library for Python programs. %prep %setup -q -n python-xlib-%{version} -%patch0 -p1 %build export CFLAGS="%{optflags}" @@ -78,9 +74,9 @@ sleep 10 %endif %files %{python_files} -%defattr(-,root,root) -%doc LICENSE README.rst NEWS TODO +%license LICENSE +%doc CHANGELOG.md README.rst TODO %{python_sitelib}/Xlib/ -%{python_sitelib}/python_xlib-*py*.egg-info +%{python_sitelib}/python_xlib-* %changelog diff --git a/python-xlib-0.14-increase-receiving-buffer.patch b/python-xlib-0.14-increase-receiving-buffer.patch deleted file mode 100644 index fbdb89f..0000000 --- a/python-xlib-0.14-increase-receiving-buffer.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: trunk/Xlib/protocol/display.py -=================================================================== ---- trunk.orig/Xlib/protocol/display.py -+++ trunk/Xlib/protocol/display.py -@@ -590,7 +590,7 @@ - # We're the recieving thread, parse the data - if recieving: - try: -- bytes_recv = self.socket.recv(2048) -+ bytes_recv = self.socket.recv(4096) - except socket.error as err: - self.close_internal('server: %s' % err[1]) - raise self.socket_error diff --git a/python-xlib-0.19.tar.bz2 b/python-xlib-0.19.tar.bz2 deleted file mode 100644 index 1dc8ea7..0000000 --- a/python-xlib-0.19.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:10ba17a7b2aea9f6a7fb0b87caa284383389cf867ba9d31619246577b8cc3408 -size 188359 diff --git a/python-xlib-0.23.tar.bz2 b/python-xlib-0.23.tar.bz2 new file mode 100644 index 0000000..9842f26 --- /dev/null +++ b/python-xlib-0.23.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3deb8329038620d07b21be05673fa5a495dd8b04a2d9f4dca37a3811d192ae4 +size 172744