From 87b78bad689592f87e79a4f48fb87f89cdeb203d19a5fa480dbb53679d33e4dc Mon Sep 17 00:00:00 2001 From: Oliver Kurz Date: Tue, 4 Jan 2022 20:24:58 +0000 Subject: [PATCH 1/3] Accepting request 943545 from home:stroeder:python Update to 9.0.0 Note: Does not build on Leap because upstream dropped support for Python 3.6 which is EOL. OBS-URL: https://build.opensuse.org/request/show/943545 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=122 --- Pillow-8.4.0.tar.gz | 3 --- Pillow-9.0.0.tar.gz | 3 +++ python-Pillow.changes | 16 ++++++++++++++++ python-Pillow.spec | 5 +++-- 4 files changed, 22 insertions(+), 5 deletions(-) delete mode 100644 Pillow-8.4.0.tar.gz create mode 100644 Pillow-9.0.0.tar.gz diff --git a/Pillow-8.4.0.tar.gz b/Pillow-8.4.0.tar.gz deleted file mode 100644 index a0afadd..0000000 --- a/Pillow-8.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b8e2f83c56e141920c39464b852de3719dfbfb6e3c99a2d8da0edf4fb33176ed -size 49368411 diff --git a/Pillow-9.0.0.tar.gz b/Pillow-9.0.0.tar.gz new file mode 100644 index 0000000..e1307b3 --- /dev/null +++ b/Pillow-9.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee6e2963e92762923956fe5d3479b1fdc3b76c83f290aad131a2f98c3df0593e +size 49513779 diff --git a/python-Pillow.changes b/python-Pillow.changes index a151ba5..096a8b6 100644 --- a/python-Pillow.changes +++ b/python-Pillow.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Mon Jan 3 08:31:45 UTC 2022 - Michael Ströder + +- update to 9.0.0 + * Dropped support for Python 3.6 + * PILLOW_VERSION has been removed. Use __version__ instead. + * Support for FreeType 2.7 has been removed; FreeType 2.8 is the minimum supported. + * Image.show command parameter has been removed. Use a subclass of PIL.ImageShow.Viewer instead. + * Image._showxv has been removed. Use show() instead. + * ImageFile.raise_ioerror: IOError was merged into OSError in Python 3.3. + * So, ImageFile.raise_ioerror has been removed. Use ImageFile.raise_oserror instead. + * An optional line width parameter has been added to ImageDraw.Draw.polygon. + * API Addition: If xdg-open is present on Linux, this new PIL.ImageShow.Viewer subclass + will be registered. It displays images using the application selected by the system. + * Added support for “title” argument to DisplayViewer + ------------------------------------------------------------------- Sat Oct 30 20:25:05 UTC 2021 - Dirk Müller diff --git a/python-Pillow.spec b/python-Pillow.spec index ea15a99..100dcbe 100644 --- a/python-Pillow.spec +++ b/python-Pillow.spec @@ -1,7 +1,7 @@ # # spec file for package python-Pillow # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,9 +18,10 @@ %define oldpython python %define skip_python2 1 +%define skip_python36 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Pillow -Version: 8.4.0 +Version: 9.0.0 Release: 0 Summary: Python Imaging Library (Fork) License: HPND From 645eee00724eca66dcab2c85c594d7c5f1bd8514711c811fd35f7759f2a7db11 Mon Sep 17 00:00:00 2001 From: Oliver Kurz Date: Tue, 4 Jan 2022 21:24:59 +0000 Subject: [PATCH 2/3] Accepting request 943843 from home:bnavigator:branches:devel:languages:python - Don't try to build on unsupported Python 3.6 - Remove python2 statements from specfile OBS-URL: https://build.opensuse.org/request/show/943843 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=123 --- python-Pillow.changes | 6 ++++++ python-Pillow.spec | 22 ++-------------------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/python-Pillow.changes b/python-Pillow.changes index 096a8b6..9bad305 100644 --- a/python-Pillow.changes +++ b/python-Pillow.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jan 4 21:06:31 UTC 2022 - Ben Greiner + +- Don't try to build on unsupported Python 3.6 +- Remove python2 statements from specfile + ------------------------------------------------------------------- Mon Jan 3 08:31:45 UTC 2022 - Michael Ströder diff --git a/python-Pillow.spec b/python-Pillow.spec index 100dcbe..9a1388c 100644 --- a/python-Pillow.spec +++ b/python-Pillow.spec @@ -16,10 +16,9 @@ # -%define oldpython python +%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 %define skip_python36 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Pillow Version: 9.0.0 Release: 0 @@ -27,7 +26,7 @@ Summary: Python Imaging Library (Fork) License: HPND URL: https://python-pillow.org/ Source: https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-%{version}.tar.gz -BuildRequires: %{python_module devel} +BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module olefile} BuildRequires: %{python_module pytest >= 4.0} BuildRequires: %{python_module setuptools} @@ -52,14 +51,6 @@ Provides: python-imaging = %{version} %if 0%{?suse_version} >= 1500 BuildRequires: pkgconfig(libopenjp2) %endif -%ifpython2 -# Pillow is a friendly PIL fork which we used to package as 'imaging' -# Without providing python-imaging, all packages requiring it will break -Obsoletes: %{oldpython}-imaging < %{version} -Provides: %{oldpython}-imaging = %{version} -Obsoletes: %{oldpython}-imaging-sane < %{version} -Provides: %{oldpython}-imaging-sane = %{version} -%endif %python_subpackages %description @@ -70,15 +61,6 @@ Python Imaging Library by Fredrik Lundh and Contributors. Summary: Python Imaging Library (Fork) - Tcl/Tk Module Requires: %{name} = %{version} Requires: python-tk -%ifpython2 -# NOTE: We don't need to conflict with python-imaging here, -# because this package depends on python-Pillow, which already conflicts with python-imaging, -# so this cannot be installed alongside python-imaging -# And we cannot conflict with python-imaging directly, since python-Pillow provides python-imaging -# Just in case, conflict with python-imaging-tk in case it is ever implemented. -Obsoletes: %{oldpython}-imaging-tk < %{version} -Provides: %{oldpython}-imaging-tk = %{version} -%endif %description tk Pillow is the "friendly" PIL fork by Alex Clark and Contributors. PIL is the From 33df33996c363f6b40ac4a8e8307ce5815df448343b2987dbd95329208ff882a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 3 Feb 2022 21:03:07 +0000 Subject: [PATCH 3/3] Accepting request 951379 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/951379 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=124 --- Pillow-9.0.0.tar.gz | 3 --- Pillow-9.0.1.tar.gz | 3 +++ python-Pillow.changes | 9 +++++++++ python-Pillow.spec | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) delete mode 100644 Pillow-9.0.0.tar.gz create mode 100644 Pillow-9.0.1.tar.gz diff --git a/Pillow-9.0.0.tar.gz b/Pillow-9.0.0.tar.gz deleted file mode 100644 index e1307b3..0000000 --- a/Pillow-9.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ee6e2963e92762923956fe5d3479b1fdc3b76c83f290aad131a2f98c3df0593e -size 49513779 diff --git a/Pillow-9.0.1.tar.gz b/Pillow-9.0.1.tar.gz new file mode 100644 index 0000000..e57d499 --- /dev/null +++ b/Pillow-9.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c8bc8238a7dfdaf7a75f5ec5a663f4173f8c367e5a39f87e720495e1eed75fa +size 49514914 diff --git a/python-Pillow.changes b/python-Pillow.changes index 9bad305..30c5621 100644 --- a/python-Pillow.changes +++ b/python-Pillow.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Feb 3 20:00:39 UTC 2022 - Arun Persaud + +- update to version 9.0.1: + * In show_file, use os.remove to remove temporary + images. CVE-2022-24303 #6010 [radarhere, hugovk] + * Restrict builtins within lambdas for + ImageMath.eval. CVE-2022-22817 #6009 [radarhere] + ------------------------------------------------------------------- Tue Jan 4 21:06:31 UTC 2022 - Ben Greiner diff --git a/python-Pillow.spec b/python-Pillow.spec index 9a1388c..3e73349 100644 --- a/python-Pillow.spec +++ b/python-Pillow.spec @@ -20,7 +20,7 @@ %define skip_python2 1 %define skip_python36 1 Name: python-Pillow -Version: 9.0.0 +Version: 9.0.1 Release: 0 Summary: Python Imaging Library (Fork) License: HPND