forked from pool/python-Pillow
- Update to 11.2.1 * Moved get_child_images() to ImageFile #8689 [@radarhere] * Add 11.2.1 release notes #8885 [@radarhere] * Added avif to config settings #8875 [@radarhere] * Added release notes for #8330 #8853 [@radarhere] * Added release notes for #8781 and #8837 #8843 [@radarhere] * Added media_white_point to ImageCms documentation #8829 [@radarhere] * Removed FIXME #8825 [@radarhere] * Updated comment #8822 [@radarhere] * Added release notes for #8807 #8824 [@radarhere] * DXT3 images are read in RGBA mode #8817 [@radarhere] * JPEG comments are from the COM marker #8788 [@radarhere] * Update Sphinx to 8.2 to remove nitpick ignore #8763 [@radarhere] * Updated AffineTransform docstring to mention it uses the inverse matrix #8735 [@radarhere] * Added MozJPEG documentation #8699 [@radarhere] * Added Sphinx configuration key #8691 [@radarhere] * Updated macOS tested Pillow versions #8654 [@radarhere] * Updated xz to 5.8.1 #8868 [@radarhere] * Updated harfbuzz to 11.0.1 #8870 [@radarhere] * Update scientific-python/upload-nightly-action action to v0.6.2 #8865 [@renovate[bot]] * Updated xz to 5.8.0 in macOS and Linux wheels, but not on manylinux2014 #8836 [@radarhere] * Update dependency cibuildwheel to v2.23.2 #8832 [@renovate[bot]] * Updated harfbuzz to 11.0.0 #8830 [@radarhere] * Update dependency cibuildwheel to v2.23.1 #8818 [@renovate[bot]] * Updated Ghostscript to 10.5.0 #8814 [@radarhere] * Updated libtiff to 4.7.0 #8812 [@radarhere] * [pre-commit.ci] pre-commit autoupdate #8795 [@pre-commit-ci[bot]] * Updated harfbuzz to 10.4.0 #8770 [@radarhere] * Update dependency mypy to v1.15.0 #8791 [@renovate[bot]] * Updated libpng to 1.6.47 #8764 [@radarhere] OBS-URL: https://build.opensuse.org/request/show/1276796 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=164
107 lines
3.5 KiB
RPMSpec
107 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package python-Pillow
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-Pillow
|
|
Version: 11.2.1
|
|
Release: 0
|
|
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
|
|
# PATCH-FIX-UPSTREAM as per https://github.com/python-pillow/Pillow/issues/8831
|
|
Patch: libwebp150.patch
|
|
BuildRequires: %{python_module devel >= 3.8}
|
|
BuildRequires: %{python_module olefile}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest >= 4.0}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module tk}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: libimagequant-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: tix
|
|
BuildRequires: unzip
|
|
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)
|
|
Requires: python-olefile
|
|
Obsoletes: python-imaging < %{version}
|
|
Provides: python-imaging = %{version}
|
|
Obsoletes: python-PIL < %{version}
|
|
Provides: python-PIL = %{version}
|
|
%if 0%{?suse_version} >= 1500
|
|
BuildRequires: pkgconfig(libopenjp2)
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%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}
|
|
Requires: python-tk
|
|
|
|
%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
|
|
%autosetup -p1 -n pillow-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
# add missing path
|
|
%{python_expand echo "PIL" > %{buildroot}%{$python_sitearch}/PIL.pth}
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} PYTHONDONTWRITEBYTECODE=1
|
|
$python selftest.py --installed
|
|
pytest-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v -k 'not (test_stroke or test_stroke_multiline)'
|
|
}
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc CHANGES.rst README.md
|
|
%{python_sitearch}/PIL
|
|
%{python_sitearch}/PIL.pth
|
|
%{python_sitearch}/pillow-%{version}.dist-info
|
|
%exclude %{python_sitearch}/PIL/ImageTk*
|
|
%exclude %{python_sitearch}/PIL/_imagingtk*
|
|
%pycache_only %exclude %{python_sitearch}/PIL/__pycache__/ImageTk.*
|
|
|
|
%files %{python_files tk}
|
|
%{python_sitearch}/PIL/ImageTk*
|
|
%{python_sitearch}/PIL/_imagingtk*
|
|
%pycache_only %{python_sitearch}/PIL/__pycache__/ImageTk.*
|
|
|
|
%changelog
|