# -*- coding: ascii; tab-width: 4 -*- Info2: << Package: pil-py%type_pkg[python] Type: python (3.7 3.8 3.9 3.10) Version: 9.5.0 Revision: 1 Description: Python Imaging Library DescDetail: << The Python Imaging Library (PIL) adds image processing capabilities to your Python interpreter. This library supports many file formats, and provides powerful image processing and graphics capabilities. << Source: https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-%v.tar.gz Source-Checksum: SHA256(bf548479d336726d7a0eceb6e767e179fbde37833ae42794602631a070d630f1) BuildDepends: << setuptools-tng-py%type_pkg[python], fink (>= 0.24.12-1), freetype219 (>= 2.3.7-7), lcms2, libimagequant0 (>= 2.12.0-1), libjpeg9, libopenjp2.7, libraqm0-dev, libtiff6, libwebp7, tcltk-dev (>= 8.4.1-1) << Depends: << cffi-py%type_pkg[python], freetype219-shlibs (>= 2.3.7-7), ghostscript | ghostscript-nox, lcms2-shlibs, libimagequant0-shlibs (>= 2.12.0-1), libjpeg9-shlibs, libopenjp2.7-shlibs, libraqm0-shlibs, libtiff6-shlibs, libwebp7-shlibs, olefile-py%type_pkg[python], python%type_pkg[python], tcltk (>= 8.4.1-1) << Replaces: pil Provides: pil PatchFile: %{ni}.patch PatchFile-MD5: 164729d81f9556aff6d9458948532ad1 PatchScript: patch -p1 -R < %{PatchFile} NoSetCPPFLAGS: true NoSetLDFLAGS: true CompileScript: << #!/bin/sh -ev if [ "$(uname -r | cut -d. -f1)" -ge 17 ]; then SDK_PATH="$(xcrun --sdk macosx --show-sdk-path)" CFLAGS="-Wno-nullability-completeness -Wno-expansion-to-defined" fi ZLIB_ROOT="$SDK_PATH/usr" CFLAGS="$CFLAGS" %p/bin/python%type_raw[python] setup.py build_ext --disable-platform-guessing ZLIB_ROOT="$SDK_PATH/usr" CFLAGS="$CFLAGS" %p/bin/python%type_raw[python] setup.py build << InfoTest: << TestDepends: pytest-py%type_pkg[python], numpy-py%type_pkg[python] TestScript: << #!/bin/sh -ev export PYTHONPATH=`ls -d %b/build/lib*` if [ "$(uname -r | cut -d. -f1)" -ge 17 ]; then SDK_PATH="$(xcrun --sdk macosx --show-sdk-path)" CFLAGS="-Wno-nullability-completeness -Wno-expansion-to-defined" fi ZLIB_ROOT="$SDK_PATH/usr" CFLAGS="$CFLAGS" %p/bin/python%type_raw[python] setup.py build_ext --inplace --disable-platform-guessing %p/bin/python%type_raw[python] -B selftest.py || exit 2 %p/bin/python%type_raw[python] -Bm pytest -vxk 'not test_grabclipboard' Tests || exit 2 find ./build -name "*.pyc" -delete << << InstallScript: << #!/bin/sh -ev if [ "$(uname -r | cut -d. -f1)" -ge 17 ]; then SDK_PATH="$(xcrun --sdk macosx --show-sdk-path)" CFLAGS="-Wno-nullability-completeness -Wno-expansion-to-defined" fi ZLIB_ROOT="$SDK_PATH/usr" CFLAGS="$CFLAGS" %p/bin/python%type_raw[python] setup.py build_ext --disable-platform-guessing ZLIB_ROOT="$SDK_PATH/usr" CFLAGS="$CFLAGS" %p/bin/python%type_raw[python] setup.py install --root=%d mkdir -p %i/include/python%type_raw[python]/PIL cp -f src/libImaging/{Imaging.h,ImPlatform.h,ImagingUtils.h,ImDib.h} %i/include/python%type_raw[python]/PIL << DocFiles: CHANGES.rst LICENSE PKG-INFO README.md docs:html License: OSI-Approved Homepage: https://github.com/python-imaging/Pillow Maintainer: Daniel Johnson DescPackaging: << Uses the tcl that matches python's tkinter Avoid un-needed -I and -L paths python build system seems to put CPPFLAGS before custom include_dirs (python bug?): NoSetCPPFLAGS so that local -I takes precedence. Especially need to find libImaging/Zip.h rather than libzip1's zip.h on case-insensitive FS. At v9.5.0, upstream improved dep lib detection, but broke our SDK zlib detection. Undo the 3 changes necessary to restore SDK zlib detection. This is the Pillow fork of PIL maintained by the plone community. Unlike PIL, it is under active development but is a otherwise a drop-in replacement. I've had reports of segfaults when pil is built with libjpeg9 and then used with pyqt4 (which through qt4 uses libjpeg8). Switching back to libjpeg8 seems to solve the problem. << # Info2 <<