2013-11-07 16:32:23 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Pillow
|
|
|
|
#
|
2025-01-13 09:58:15 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2013-11-07 16:32:23 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-08 15:26:35 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-11-07 16:32:23 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-04-21 14:07:23 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2013-11-07 16:32:23 +00:00
|
|
|
Name: python-Pillow
|
2025-07-02 08:11:29 +00:00
|
|
|
Version: 11.3.0
|
2013-11-07 16:32:23 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python Imaging Library (Fork)
|
2013-11-14 13:21:19 +00:00
|
|
|
License: HPND
|
2019-04-05 10:55:10 +00:00
|
|
|
URL: https://python-pillow.org/
|
2024-01-22 06:02:29 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pillow/pillow-%{version}.tar.gz
|
2025-03-24 12:51:22 +00:00
|
|
|
# PATCH-FIX-UPSTREAM as per https://github.com/python-pillow/Pillow/issues/8831
|
|
|
|
Patch: libwebp150.patch
|
Accepting request 1112102 from home:ecsos:python
- Update to 10.0.1
- Updated libwebp to 1.3.2 #7395 [radarhere]
- Updated zlib to 1.3 #7344 [radarhere]
- Changes from 10.0.0
- Fixed deallocating mask images #7246 [radarhere]
- Added ImageFont.MAX_STRING_LENGTH #7244 [radarhere, hugovk]
- Fix Windows build with pyproject.toml #7230 [hugovk, nulano, radarhere]
- Do not close provided file handles with libtiff #7199 [radarhere]
- Convert to HSV if mode is HSV in getcolor() #7226 [radarhere]
- Added alpha_only argument to getbbox() #7123 [radarhere. hugovk]
- Prioritise speed in _repr_png_ #7242 [radarhere]
- Do not use CFFI access by default on PyPy #7236 [radarhere]
- Limit size even if one dimension is zero in decompression bomb check #7235 [radarhere]
- Use --config-settings instead of deprecated --global-option #7171 [radarhere]
- Better C integer definitions #6645 [Yay295, hugovk]
- Fixed finding dependencies on Cygwin #7175 [radarhere]
- Changed grabclipboard() to use PNG instead of JPG compression on macOS #7219 [abey79, radarhere]
- Added in_place argument to ImageOps.exif_transpose() #7092 [radarhere]
- Fixed calling putpalette() on L and LA images before load() #7187 [radarhere]
- Fixed saving TIFF multiframe images with LONG8 tag types #7078 [radarhere]
- Fixed combining single duration across duplicate APNG frames #7146 [radarhere]
- Remove temporary file when error is raised #7148 [radarhere]
- Do not use temporary file when grabbing clipboard on Linux #7200 [radarhere]
- If the clipboard fails to open on Windows, wait and try again #7141 [radarhere]
- Fixed saving multiple 1 mode frames to GIF #7181 [radarhere]
- Replaced absolute PIL import with relative import #7173 [radarhere]
- Replaced deprecated Py_FileSystemDefaultEncoding for Python >= 3.12 #7192 [radarhere]
- Improved wl-paste mimetype handling in ImageGrab #7094 [rrcgat, radarhere]
- Added _repr_jpeg_() for IPython display_jpeg #7135 [n3011, radarhere, nulano]
- Use "/sbin/ldconfig" if ldconfig is not found #7068 [radarhere]
- Prefer screenshots using XCB over gnome-screenshot #7143 [nulano, radarhere]
- Fixed joined corners for ImageDraw rounded_rectangle() odd dimensions #7151 [radarhere]
- Support reading signed 8-bit TIFF images #7111 [radarhere]
- Added width argument to ImageDraw regular_polygon #7132 [radarhere]
- Support I mode for ImageFilter.BuiltinFilter #7108 [radarhere]
- Raise error from stderr of Linux ImageGrab.grabclipboard() command #7112 [radarhere]
- Added unpacker from I;16B to I;16 #7125 [radarhere]
- Support float font sizes #7107 [radarhere]
- Use later value for duplicate xref entries in PdfParser #7102 [radarhere]
- Load before getting size in __getstate__ #7105 [bigcat88, radarhere]
- Fixed type handling for include and lib directories #7069 [adisbladis, radarhere]
- Remove deprecations for Pillow 10.0.0 #7059, #7080 [hugovk, radarhere]
- Drop support for soon-EOL Python 3.7 #7058 [hugovk, radarhere]
OBS-URL: https://build.opensuse.org/request/show/1112102
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=144
2023-09-19 04:51:13 +00:00
|
|
|
BuildRequires: %{python_module devel >= 3.8}
|
2017-04-12 18:20:07 +00:00
|
|
|
BuildRequires: %{python_module olefile}
|
2024-01-22 06:02:29 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-08-19 09:35:06 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 4.0}
|
2017-04-12 18:20:07 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-07-12 06:35:51 +00:00
|
|
|
BuildRequires: %{python_module tk}
|
2024-01-22 06:02:29 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-04-12 18:20:07 +00:00
|
|
|
BuildRequires: fdupes
|
2019-04-05 10:55:10 +00:00
|
|
|
BuildRequires: libimagequant-devel
|
2019-04-05 11:00:31 +00:00
|
|
|
BuildRequires: pkgconfig
|
2017-04-12 18:20:07 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2013-11-07 16:32:23 +00:00
|
|
|
BuildRequires: tix
|
|
|
|
BuildRequires: unzip
|
2019-04-05 11:00:31 +00:00
|
|
|
BuildRequires: pkgconfig(freetype2)
|
|
|
|
BuildRequires: pkgconfig(lcms2)
|
|
|
|
BuildRequires: pkgconfig(libjpeg)
|
|
|
|
BuildRequires: pkgconfig(libtiff-4)
|
|
|
|
BuildRequires: pkgconfig(libturbojpeg)
|
|
|
|
BuildRequires: pkgconfig(libwebp)
|
|
|
|
BuildRequires: pkgconfig(tk)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2017-04-12 18:20:07 +00:00
|
|
|
Requires: python-olefile
|
2021-04-05 11:29:59 +00:00
|
|
|
Obsoletes: python-imaging < %{version}
|
|
|
|
Provides: python-imaging = %{version}
|
2023-07-30 06:55:14 +00:00
|
|
|
Obsoletes: python-PIL < %{version}
|
|
|
|
Provides: python-PIL = %{version}
|
2018-12-06 12:18:31 +00:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2019-04-05 11:00:31 +00:00
|
|
|
BuildRequires: pkgconfig(libopenjp2)
|
2013-11-07 16:32:23 +00:00
|
|
|
%endif
|
2017-04-12 18:20:07 +00:00
|
|
|
%python_subpackages
|
2013-11-07 16:32:23 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Pillow is the "friendly" PIL fork by Alex Clark and Contributors. PIL is the
|
|
|
|
Python Imaging Library by Fredrik Lundh and Contributors.
|
|
|
|
|
|
|
|
%package tk
|
|
|
|
Summary: Python Imaging Library (Fork) - Tcl/Tk Module
|
|
|
|
Requires: %{name} = %{version}
|
2017-08-09 18:33:34 +00:00
|
|
|
Requires: python-tk
|
2013-11-07 16:32:23 +00:00
|
|
|
|
|
|
|
%description tk
|
|
|
|
Pillow is the "friendly" PIL fork by Alex Clark and Contributors. PIL is the
|
|
|
|
Python Imaging Library by Fredrik Lundh and Contributors.
|
|
|
|
|
|
|
|
%prep
|
2024-01-22 06:02:29 +00:00
|
|
|
%autosetup -p1 -n pillow-%{version}
|
2013-11-07 16:32:23 +00:00
|
|
|
|
|
|
|
%build
|
2024-01-22 06:02:29 +00:00
|
|
|
%pyproject_wheel
|
2013-11-07 16:32:23 +00:00
|
|
|
|
|
|
|
%install
|
2024-01-22 06:02:29 +00:00
|
|
|
%pyproject_install
|
2014-08-02 11:00:59 +00:00
|
|
|
# add missing path
|
2017-04-12 18:20:07 +00:00
|
|
|
%{python_expand echo "PIL" > %{buildroot}%{$python_sitearch}/PIL.pth}
|
2021-03-08 09:00:43 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2013-11-07 16:32:23 +00:00
|
|
|
|
|
|
|
%check
|
2020-08-05 18:37:55 +00:00
|
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} PYTHONDONTWRITEBYTECODE=1
|
2017-04-12 18:20:07 +00:00
|
|
|
$python selftest.py --installed
|
2020-08-05 18:37:55 +00:00
|
|
|
pytest-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v -k 'not (test_stroke or test_stroke_multiline)'
|
2017-04-12 18:20:07 +00:00
|
|
|
}
|
2013-11-07 16:32:23 +00:00
|
|
|
|
2017-04-12 18:20:07 +00:00
|
|
|
%files %{python_files}
|
2018-04-08 06:43:57 +00:00
|
|
|
%license LICENSE
|
2020-11-16 21:01:05 +00:00
|
|
|
%doc CHANGES.rst README.md
|
2013-11-07 16:32:23 +00:00
|
|
|
%{python_sitearch}/PIL
|
2014-08-02 11:00:59 +00:00
|
|
|
%{python_sitearch}/PIL.pth
|
2024-01-22 06:02:29 +00:00
|
|
|
%{python_sitearch}/pillow-%{version}.dist-info
|
2013-11-07 16:32:23 +00:00
|
|
|
%exclude %{python_sitearch}/PIL/ImageTk*
|
|
|
|
%exclude %{python_sitearch}/PIL/_imagingtk*
|
2017-04-12 18:20:07 +00:00
|
|
|
%pycache_only %exclude %{python_sitearch}/PIL/__pycache__/ImageTk.*
|
2017-08-09 18:33:34 +00:00
|
|
|
|
2017-04-12 18:20:07 +00:00
|
|
|
%files %{python_files tk}
|
2013-11-07 16:32:23 +00:00
|
|
|
%{python_sitearch}/PIL/ImageTk*
|
|
|
|
%{python_sitearch}/PIL/_imagingtk*
|
2017-04-12 18:20:07 +00:00
|
|
|
%pycache_only %{python_sitearch}/PIL/__pycache__/ImageTk.*
|
2013-11-07 16:32:23 +00:00
|
|
|
|
|
|
|
%changelog
|