python-Pillow/python-Pillow.spec

144 lines
4.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-Pillow
#
# Copyright (c) 2019 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
# 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/
#
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%if 0%{?is_opensuse} || 0%{?suse_version} >= 1500
- Remove other distro conditions as they can't use singlespec really - Version update to 5.0.0: * Docs: Added docstrings from documentation #2914 [radarhere] * Test: Switch from nose to pytest #2815 [hugovk] * Rework Source directory layout, preventing accidental import of PIL. #2911 [wiredfool] * Dynamically link libraqm #2753 [wiredfool] * Removed scripts directory #2901 [wiredfool] * TIFF: Run all compressed tiffs through libtiff decoder #2899 [wiredfool] * GIF: Add disposal option when saving GIFs #2902 [linnil1, wiredfool] * EPS: Allow for an empty line in EPS header data #2903 [radarhere] * PNG: Add support for sRGB and cHRM chunks, permit sRGB when no iCCP chunk present #2898 [wiredfool] * Dependencies: Update Tk Tcl to 8.6.8 #2905 [radarhere] * Decompression bomb error now raised for images 2x larger than a decompression bomb warning #2583 [wiredfool] * Test: avoid random failure in test_effect_noise #2894 [hugovk] * Increased epsilon for test_file_eps.py:test_showpage due to Arch update. #2896 [wiredfool] * Removed check parameter from _save in BmpImagePlugin, PngImagePlugin, ImImagePlugin, PalmImagePlugin, and PcxImagePlugin. #2873 [radarhere] * Make PngImagePlugin.add_text() zip argument type bool #2890 [jdufresne] * Depends: Updated libwebp to 0.6.1 #2880 [radarhere] * Remove unnecessary bool() calls in Image.registered_extensions and skipKnownBadTests #2891 [jdufresne] * Fix count of BITSPERSAMPLE items in broken TIFF files #2883 [homm] * Fillcolor parameter for Image.Transform #2852 [wiredfool] * Test: Display differences for test failures #2862 [wiredfool] * Added executable flag to file with shebang line #2884 [radarhere] * Setup: Specify compatible Python versions for pip #2877 [hugovk] * Dependencies: Updated libimagequant to 2.11.4 #2878 [radarhere] * Setup: Warn if trying to install for Py3.7 on Windows #2855 [hugovk] * Doc: Fonts can be loaded from a file-like object, not just filename #2861 [robin-norwood] * Add eog support for Ubuntu Image Viewer #2864 [NafisFaysal] * Test: Test on 3.7-dev on Travis.ci #2870 [hugovk] * Dependencies: Update libtiff to 4.0.9 #2871 [radarhere] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=65
2018-01-10 15:05:00 +01:00
%bcond_without tk
%else
%bcond_with tk
%endif
Name: python-Pillow
- Update to 6.0.0: * Python 2.7 support will be removed in Pillow 7.0.0 #3682 [hugovk] * Add EXIF class #3625 [radarhere] * Add ImageOps exif_transpose method #3687 [radarhere] * Added warnings to deprecated CMSProfile attributes #3615 [hugovk] * Documented reading TIFF multiframe images #3720 [akuchling] * Improved speed of opening an MPO file #3658 [Glandos] * Update palette in quantize #3721 [radarhere] * Improvements to TIFF is_animated and n_frames #3714 [radarhere] * Fixed incompatible pointer type warnings #3754 [radarhere] * Improvements to PA and LA conversion and palette operations #3728 [radarhere] * Consistent DPI rounding #3709 [radarhere] * Change size of MPO image to match frame #3588 [radarhere] * Read Photoshop resolution data #3701 [radarhere] * Ensure image is mutable before saving #3724 [radarhere] * Correct remap_palette documentation #3740 [radarhere] * Promote P images to PA in putalpha #3726 [radarhere] * Allow RGB and RGBA values for new P images #3719 [radarhere] * Fixed TIFF bug when seeking backwards and then forwards #3713 [radarhere] * Cache EXIF information #3498 [Glandos] * Added transparency for all PNG greyscale modes #3744 [radarhere] * Fix deprecation warnings in Python 3.8 #3749 [radarhere] * Fixed GIF bug when rewinding to a non-zero frame #3716 [radarhere] * Only close original fp in __del__ and __exit__ if original fp is exclusive #3683 [radarhere] * Fix BytesWarning in Tests/test_numpy.py #3725 [jdufresne] * Add missing MIME types and extensions #3520 [pirate486743186] * Add I;16 PNG save #3566 [radarhere] * Add support for BMP RGBA bitfield compression #3705 [radarhere] * Added ability to set language for text rendering #3693 [iwsfutcmd] * Only close exclusive fp on Image __exit__ #3698 [radarhere] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=80
2019-04-05 12:55:10 +02:00
Version: 6.0.0
Release: 0
Summary: Python Imaging Library (Fork)
License: HPND
Group: Development/Languages/Python
- Update to 6.0.0: * Python 2.7 support will be removed in Pillow 7.0.0 #3682 [hugovk] * Add EXIF class #3625 [radarhere] * Add ImageOps exif_transpose method #3687 [radarhere] * Added warnings to deprecated CMSProfile attributes #3615 [hugovk] * Documented reading TIFF multiframe images #3720 [akuchling] * Improved speed of opening an MPO file #3658 [Glandos] * Update palette in quantize #3721 [radarhere] * Improvements to TIFF is_animated and n_frames #3714 [radarhere] * Fixed incompatible pointer type warnings #3754 [radarhere] * Improvements to PA and LA conversion and palette operations #3728 [radarhere] * Consistent DPI rounding #3709 [radarhere] * Change size of MPO image to match frame #3588 [radarhere] * Read Photoshop resolution data #3701 [radarhere] * Ensure image is mutable before saving #3724 [radarhere] * Correct remap_palette documentation #3740 [radarhere] * Promote P images to PA in putalpha #3726 [radarhere] * Allow RGB and RGBA values for new P images #3719 [radarhere] * Fixed TIFF bug when seeking backwards and then forwards #3713 [radarhere] * Cache EXIF information #3498 [Glandos] * Added transparency for all PNG greyscale modes #3744 [radarhere] * Fix deprecation warnings in Python 3.8 #3749 [radarhere] * Fixed GIF bug when rewinding to a non-zero frame #3716 [radarhere] * Only close original fp in __del__ and __exit__ if original fp is exclusive #3683 [radarhere] * Fix BytesWarning in Tests/test_numpy.py #3725 [jdufresne] * Add missing MIME types and extensions #3520 [pirate486743186] * Add I;16 PNG save #3566 [radarhere] * Add support for BMP RGBA bitfield compression #3705 [radarhere] * Added ability to set language for text rendering #3693 [iwsfutcmd] * Only close exclusive fp on Image __exit__ #3698 [radarhere] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=80
2019-04-05 12:55:10 +02:00
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 olefile}
- Remove other distro conditions as they can't use singlespec really - Version update to 5.0.0: * Docs: Added docstrings from documentation #2914 [radarhere] * Test: Switch from nose to pytest #2815 [hugovk] * Rework Source directory layout, preventing accidental import of PIL. #2911 [wiredfool] * Dynamically link libraqm #2753 [wiredfool] * Removed scripts directory #2901 [wiredfool] * TIFF: Run all compressed tiffs through libtiff decoder #2899 [wiredfool] * GIF: Add disposal option when saving GIFs #2902 [linnil1, wiredfool] * EPS: Allow for an empty line in EPS header data #2903 [radarhere] * PNG: Add support for sRGB and cHRM chunks, permit sRGB when no iCCP chunk present #2898 [wiredfool] * Dependencies: Update Tk Tcl to 8.6.8 #2905 [radarhere] * Decompression bomb error now raised for images 2x larger than a decompression bomb warning #2583 [wiredfool] * Test: avoid random failure in test_effect_noise #2894 [hugovk] * Increased epsilon for test_file_eps.py:test_showpage due to Arch update. #2896 [wiredfool] * Removed check parameter from _save in BmpImagePlugin, PngImagePlugin, ImImagePlugin, PalmImagePlugin, and PcxImagePlugin. #2873 [radarhere] * Make PngImagePlugin.add_text() zip argument type bool #2890 [jdufresne] * Depends: Updated libwebp to 0.6.1 #2880 [radarhere] * Remove unnecessary bool() calls in Image.registered_extensions and skipKnownBadTests #2891 [jdufresne] * Fix count of BITSPERSAMPLE items in broken TIFF files #2883 [homm] * Fillcolor parameter for Image.Transform #2852 [wiredfool] * Test: Display differences for test failures #2862 [wiredfool] * Added executable flag to file with shebang line #2884 [radarhere] * Setup: Specify compatible Python versions for pip #2877 [hugovk] * Dependencies: Updated libimagequant to 2.11.4 #2878 [radarhere] * Setup: Warn if trying to install for Py3.7 on Windows #2855 [hugovk] * Doc: Fonts can be loaded from a file-like object, not just filename #2861 [robin-norwood] * Add eog support for Ubuntu Image Viewer #2864 [NafisFaysal] * Test: Test on 3.7-dev on Travis.ci #2870 [hugovk] * Dependencies: Update libtiff to 4.0.9 #2871 [radarhere] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=65
2018-01-10 15:05:00 +01:00
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
- Update to 6.0.0: * Python 2.7 support will be removed in Pillow 7.0.0 #3682 [hugovk] * Add EXIF class #3625 [radarhere] * Add ImageOps exif_transpose method #3687 [radarhere] * Added warnings to deprecated CMSProfile attributes #3615 [hugovk] * Documented reading TIFF multiframe images #3720 [akuchling] * Improved speed of opening an MPO file #3658 [Glandos] * Update palette in quantize #3721 [radarhere] * Improvements to TIFF is_animated and n_frames #3714 [radarhere] * Fixed incompatible pointer type warnings #3754 [radarhere] * Improvements to PA and LA conversion and palette operations #3728 [radarhere] * Consistent DPI rounding #3709 [radarhere] * Change size of MPO image to match frame #3588 [radarhere] * Read Photoshop resolution data #3701 [radarhere] * Ensure image is mutable before saving #3724 [radarhere] * Correct remap_palette documentation #3740 [radarhere] * Promote P images to PA in putalpha #3726 [radarhere] * Allow RGB and RGBA values for new P images #3719 [radarhere] * Fixed TIFF bug when seeking backwards and then forwards #3713 [radarhere] * Cache EXIF information #3498 [Glandos] * Added transparency for all PNG greyscale modes #3744 [radarhere] * Fix deprecation warnings in Python 3.8 #3749 [radarhere] * Fixed GIF bug when rewinding to a non-zero frame #3716 [radarhere] * Only close original fp in __del__ and __exit__ if original fp is exclusive #3683 [radarhere] * Fix BytesWarning in Tests/test_numpy.py #3725 [jdufresne] * Add missing MIME types and extensions #3520 [pirate486743186] * Add I;16 PNG save #3566 [radarhere] * Add support for BMP RGBA bitfield compression #3705 [radarhere] * Added ability to set language for text rendering #3693 [iwsfutcmd] * Only close exclusive fp on Image __exit__ #3698 [radarhere] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=80
2019-04-05 12:55:10 +02:00
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
- Remove other distro conditions as they can't use singlespec really - Version update to 5.0.0: * Docs: Added docstrings from documentation #2914 [radarhere] * Test: Switch from nose to pytest #2815 [hugovk] * Rework Source directory layout, preventing accidental import of PIL. #2911 [wiredfool] * Dynamically link libraqm #2753 [wiredfool] * Removed scripts directory #2901 [wiredfool] * TIFF: Run all compressed tiffs through libtiff decoder #2899 [wiredfool] * GIF: Add disposal option when saving GIFs #2902 [linnil1, wiredfool] * EPS: Allow for an empty line in EPS header data #2903 [radarhere] * PNG: Add support for sRGB and cHRM chunks, permit sRGB when no iCCP chunk present #2898 [wiredfool] * Dependencies: Update Tk Tcl to 8.6.8 #2905 [radarhere] * Decompression bomb error now raised for images 2x larger than a decompression bomb warning #2583 [wiredfool] * Test: avoid random failure in test_effect_noise #2894 [hugovk] * Increased epsilon for test_file_eps.py:test_showpage due to Arch update. #2896 [wiredfool] * Removed check parameter from _save in BmpImagePlugin, PngImagePlugin, ImImagePlugin, PalmImagePlugin, and PcxImagePlugin. #2873 [radarhere] * Make PngImagePlugin.add_text() zip argument type bool #2890 [jdufresne] * Depends: Updated libwebp to 0.6.1 #2880 [radarhere] * Remove unnecessary bool() calls in Image.registered_extensions and skipKnownBadTests #2891 [jdufresne] * Fix count of BITSPERSAMPLE items in broken TIFF files #2883 [homm] * Fillcolor parameter for Image.Transform #2852 [wiredfool] * Test: Display differences for test failures #2862 [wiredfool] * Added executable flag to file with shebang line #2884 [radarhere] * Setup: Specify compatible Python versions for pip #2877 [hugovk] * Dependencies: Updated libimagequant to 2.11.4 #2878 [radarhere] * Setup: Warn if trying to install for Py3.7 on Windows #2855 [hugovk] * Doc: Fonts can be loaded from a file-like object, not just filename #2861 [robin-norwood] * Add eog support for Ubuntu Image Viewer #2864 [NafisFaysal] * Test: Test on 3.7-dev on Travis.ci #2870 [hugovk] * Dependencies: Update libtiff to 4.0.9 #2871 [radarhere] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=65
2018-01-10 15:05:00 +01:00
%if %{with tk}
BuildRequires: %{python_module tk}
%endif
%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
%ifpython3
Obsoletes: python3-imaging < %{version}
Provides: python3-imaging = %{version}
%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
Group: Development/Languages/Python
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
Python Imaging Library by Fredrik Lundh and Contributors.
%prep
%setup -q -n Pillow-%{version}
%build
%python_build
%install
%python_install
- Update to 6.0.0: * Python 2.7 support will be removed in Pillow 7.0.0 #3682 [hugovk] * Add EXIF class #3625 [radarhere] * Add ImageOps exif_transpose method #3687 [radarhere] * Added warnings to deprecated CMSProfile attributes #3615 [hugovk] * Documented reading TIFF multiframe images #3720 [akuchling] * Improved speed of opening an MPO file #3658 [Glandos] * Update palette in quantize #3721 [radarhere] * Improvements to TIFF is_animated and n_frames #3714 [radarhere] * Fixed incompatible pointer type warnings #3754 [radarhere] * Improvements to PA and LA conversion and palette operations #3728 [radarhere] * Consistent DPI rounding #3709 [radarhere] * Change size of MPO image to match frame #3588 [radarhere] * Read Photoshop resolution data #3701 [radarhere] * Ensure image is mutable before saving #3724 [radarhere] * Correct remap_palette documentation #3740 [radarhere] * Promote P images to PA in putalpha #3726 [radarhere] * Allow RGB and RGBA values for new P images #3719 [radarhere] * Fixed TIFF bug when seeking backwards and then forwards #3713 [radarhere] * Cache EXIF information #3498 [Glandos] * Added transparency for all PNG greyscale modes #3744 [radarhere] * Fix deprecation warnings in Python 3.8 #3749 [radarhere] * Fixed GIF bug when rewinding to a non-zero frame #3716 [radarhere] * Only close original fp in __del__ and __exit__ if original fp is exclusive #3683 [radarhere] * Fix BytesWarning in Tests/test_numpy.py #3725 [jdufresne] * Add missing MIME types and extensions #3520 [pirate486743186] * Add I;16 PNG save #3566 [radarhere] * Add support for BMP RGBA bitfield compression #3705 [radarhere] * Added ability to set language for text rendering #3693 [iwsfutcmd] * Only close exclusive fp on Image __exit__ #3698 [radarhere] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=80
2019-04-05 12:55:10 +02:00
%python_expand %fdupes %{buildroot}%{$python_sitearch}
# add missing path
%{python_expand echo "PIL" > %{buildroot}%{$python_sitearch}/PIL.pth}
%check
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
%if %_arch == s390x || %_arch == s390x || %_arch == ppc || %_arch == ppc64
$python selftest.py --installed || \
echo "WARNING ignore failure https://github.com/python-pillow/Pillow/issues/1204"
- Remove other distro conditions as they can't use singlespec really - Version update to 5.0.0: * Docs: Added docstrings from documentation #2914 [radarhere] * Test: Switch from nose to pytest #2815 [hugovk] * Rework Source directory layout, preventing accidental import of PIL. #2911 [wiredfool] * Dynamically link libraqm #2753 [wiredfool] * Removed scripts directory #2901 [wiredfool] * TIFF: Run all compressed tiffs through libtiff decoder #2899 [wiredfool] * GIF: Add disposal option when saving GIFs #2902 [linnil1, wiredfool] * EPS: Allow for an empty line in EPS header data #2903 [radarhere] * PNG: Add support for sRGB and cHRM chunks, permit sRGB when no iCCP chunk present #2898 [wiredfool] * Dependencies: Update Tk Tcl to 8.6.8 #2905 [radarhere] * Decompression bomb error now raised for images 2x larger than a decompression bomb warning #2583 [wiredfool] * Test: avoid random failure in test_effect_noise #2894 [hugovk] * Increased epsilon for test_file_eps.py:test_showpage due to Arch update. #2896 [wiredfool] * Removed check parameter from _save in BmpImagePlugin, PngImagePlugin, ImImagePlugin, PalmImagePlugin, and PcxImagePlugin. #2873 [radarhere] * Make PngImagePlugin.add_text() zip argument type bool #2890 [jdufresne] * Depends: Updated libwebp to 0.6.1 #2880 [radarhere] * Remove unnecessary bool() calls in Image.registered_extensions and skipKnownBadTests #2891 [jdufresne] * Fix count of BITSPERSAMPLE items in broken TIFF files #2883 [homm] * Fillcolor parameter for Image.Transform #2852 [wiredfool] * Test: Display differences for test failures #2862 [wiredfool] * Added executable flag to file with shebang line #2884 [radarhere] * Setup: Specify compatible Python versions for pip #2877 [hugovk] * Dependencies: Updated libimagequant to 2.11.4 #2878 [radarhere] * Setup: Warn if trying to install for Py3.7 on Windows #2855 [hugovk] * Doc: Fonts can be loaded from a file-like object, not just filename #2861 [robin-norwood] * Add eog support for Ubuntu Image Viewer #2864 [NafisFaysal] * Test: Test on 3.7-dev on Travis.ci #2870 [hugovk] * Dependencies: Update libtiff to 4.0.9 #2871 [radarhere] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=65
2018-01-10 15:05:00 +01:00
$python setup.py test || \
echo "WARNING ignore failure https://github.com/python-pillow/Pillow/issues/1204"
%else
$python selftest.py --installed
- Remove other distro conditions as they can't use singlespec really - Version update to 5.0.0: * Docs: Added docstrings from documentation #2914 [radarhere] * Test: Switch from nose to pytest #2815 [hugovk] * Rework Source directory layout, preventing accidental import of PIL. #2911 [wiredfool] * Dynamically link libraqm #2753 [wiredfool] * Removed scripts directory #2901 [wiredfool] * TIFF: Run all compressed tiffs through libtiff decoder #2899 [wiredfool] * GIF: Add disposal option when saving GIFs #2902 [linnil1, wiredfool] * EPS: Allow for an empty line in EPS header data #2903 [radarhere] * PNG: Add support for sRGB and cHRM chunks, permit sRGB when no iCCP chunk present #2898 [wiredfool] * Dependencies: Update Tk Tcl to 8.6.8 #2905 [radarhere] * Decompression bomb error now raised for images 2x larger than a decompression bomb warning #2583 [wiredfool] * Test: avoid random failure in test_effect_noise #2894 [hugovk] * Increased epsilon for test_file_eps.py:test_showpage due to Arch update. #2896 [wiredfool] * Removed check parameter from _save in BmpImagePlugin, PngImagePlugin, ImImagePlugin, PalmImagePlugin, and PcxImagePlugin. #2873 [radarhere] * Make PngImagePlugin.add_text() zip argument type bool #2890 [jdufresne] * Depends: Updated libwebp to 0.6.1 #2880 [radarhere] * Remove unnecessary bool() calls in Image.registered_extensions and skipKnownBadTests #2891 [jdufresne] * Fix count of BITSPERSAMPLE items in broken TIFF files #2883 [homm] * Fillcolor parameter for Image.Transform #2852 [wiredfool] * Test: Display differences for test failures #2862 [wiredfool] * Added executable flag to file with shebang line #2884 [radarhere] * Setup: Specify compatible Python versions for pip #2877 [hugovk] * Dependencies: Updated libimagequant to 2.11.4 #2878 [radarhere] * Setup: Warn if trying to install for Py3.7 on Windows #2855 [hugovk] * Doc: Fonts can be loaded from a file-like object, not just filename #2861 [robin-norwood] * Add eog support for Ubuntu Image Viewer #2864 [NafisFaysal] * Test: Test on 3.7-dev on Travis.ci #2870 [hugovk] * Dependencies: Update libtiff to 4.0.9 #2871 [radarhere] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=65
2018-01-10 15:05:00 +01:00
$python setup.py test
%endif
}
%files %{python_files}
%license LICENSE
%doc CHANGES.rst README.rst
%{python_sitearch}/PIL
%{python_sitearch}/PIL.pth
%{python_sitearch}/Pillow-%{version}-py%{python_version}.egg-info
%if %{with tk}
%exclude %{python_sitearch}/PIL/ImageTk*
%exclude %{python_sitearch}/PIL/_imagingtk*
%pycache_only %exclude %{python_sitearch}/PIL/__pycache__/ImageTk.*
%endif
%if %{with tk}
%files %{python_files tk}
%{python_sitearch}/PIL/ImageTk*
%{python_sitearch}/PIL/_imagingtk*
%pycache_only %{python_sitearch}/PIL/__pycache__/ImageTk.*
%endif
%changelog