|
|
@ -1,75 +1,144 @@ |
|
|
|
%global py2_incdir %{_includedir}/python%{python_version} |
|
|
|
%global py3_incdir %(python3 -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc())') |
|
|
|
%global py3_incdir %{_includedir}/python%{python3_version} |
|
|
|
%global py3_libbuilddir %(python3 -c 'import sys; import sysconfig; print("lib.{p}-{v[0]}.{v[1]}".format(p=sysconfig.get_platform(), v=sys.version_info))') |
|
|
|
|
|
|
|
|
|
|
|
%global name3 python3-pillow |
|
|
|
%global srcname pillow |
|
|
|
%global with_python3 1 |
|
|
|
# bootstrap building docs (pillow is required by docutils, docutils are |
|
|
|
|
|
|
|
# required by sphinx; pillow build-requires sphinx) |
|
|
|
# Refer to the comment for Source0 below on how to obtain the source tarball |
|
|
|
%global with_docs 0 |
|
|
|
# The saved file has format python-imaging-Pillow-$version-$ahead-g$shortcommit.tar.gz |
|
|
|
|
|
|
|
%global commit d1c6db88d4dee462c6bbf4e22555e3ddd410d06a |
|
|
|
Name: python-%{srcname} |
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7}) |
|
|
|
Version: 5.1.1 |
|
|
|
%global ahead 105 |
|
|
|
Release: 18%{?dist} |
|
|
|
|
|
|
|
|
|
|
|
# If ahead is 0, the tarball corresponds to a release version, otherwise to a git snapshot |
|
|
|
|
|
|
|
%if %{ahead} > 0 |
|
|
|
|
|
|
|
%global snap .git%{shortcommit} |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-pillow |
|
|
|
|
|
|
|
Version: 2.0.0 |
|
|
|
|
|
|
|
Release: 20%{?snap}%{?dist} |
|
|
|
|
|
|
|
Summary: Python image processing library |
|
|
|
Summary: Python image processing library |
|
|
|
|
|
|
|
|
|
|
|
# License: see http://www.pythonware.com/products/pil/license.htm |
|
|
|
# License: see http://www.pythonware.com/products/pil/license.htm |
|
|
|
License: MIT |
|
|
|
License: MIT |
|
|
|
URL: http://python-pillow.github.io/ |
|
|
|
URL: http://python-pillow.github.io/ |
|
|
|
|
|
|
|
Source0: https://github.com/python-pillow/Pillow/archive/%{version}/Pillow-%{version}.tar.gz |
|
|
|
|
|
|
|
Patch0: 0001-Fix-potential-un-terminated-buffer-problem-CWE-120.patch |
|
|
|
|
|
|
|
Patch1: 0002-Fix-potential-leaked-storage-issues-CWE-772.patch |
|
|
|
|
|
|
|
Patch2: 0003-Fix-dereferencing-type-punned-pointer.patch |
|
|
|
|
|
|
|
# Combined fixes for CVE-2020-5312 improperly restricted operations on memory buffer in libImaging/PcxDecode.c |
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1789533 |
|
|
|
|
|
|
|
# https://github.com/python-pillow/Pillow/commit/93b22b846e0269ee9594ff71a72bec02d2bea8fd |
|
|
|
|
|
|
|
# and for CVE-2019-16865 reading specially crafted image files leads to allocation of large amounts of memory and denial of service |
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1774066 |
|
|
|
|
|
|
|
# https://github.com/python-pillow/Pillow/commit/cc16025e234b7a7a4dd3a86d2fdc0980698db9cc |
|
|
|
|
|
|
|
# https://github.com/python-pillow/Pillow/commit/b36c1bc943d554ba223086c7efb502d080f73905 |
|
|
|
|
|
|
|
# https://github.com/python-pillow/Pillow/commit/f228d0ccbf6bf9392d7fcd51356ef2cfda80c75a |
|
|
|
|
|
|
|
# https://github.com/python-pillow/Pillow/commit/b9693a51c99c260bd66d1affeeab4a226cf7e5a5 |
|
|
|
|
|
|
|
Patch3: CVE-2020-5312_CVE-2019-16865.patch |
|
|
|
|
|
|
|
# Fix for CVE-2020-5311 - out-of-bounds write in expandrow in libImaging/SgiRleDecode.c |
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1789535 |
|
|
|
|
|
|
|
# https://github.com/python-pillow/Pillow/commit/a79b65c47c7dc6fe623aadf09aa6192fc54548f3 |
|
|
|
|
|
|
|
Patch4: CVE-2020-5311.patch |
|
|
|
|
|
|
|
# CVE-2020-5313 out-of-bounds read in ImagingFliDecode when loading FLI images |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/commit/a09acd0decd8a87ccce939d5ff65dab59e7d365b?patch |
|
|
|
|
|
|
|
# Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=1789532 |
|
|
|
|
|
|
|
Patch5: CVE-2020-5313.patch |
|
|
|
|
|
|
|
# CVE-2020-11538 out-of-bounds reads/writes in the parsing of SGI image files in expandrow/expandrow2 |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/pull/4504/ |
|
|
|
|
|
|
|
# Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=1852814 |
|
|
|
|
|
|
|
Patch6: CVE-2020-11538.patch |
|
|
|
|
|
|
|
# CVE-2020-35653 decoding a crafted PCX file could result in buffer over-read |
|
|
|
|
|
|
|
# Note that there is a wrong CVE number in the commit msg |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/commit/2f409261eb1228e166868f8f0b5da5cda52e55bf |
|
|
|
|
|
|
|
# Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=1915432 |
|
|
|
|
|
|
|
Patch7: CVE-2020-35653.patch |
|
|
|
|
|
|
|
# CVE-2020-35655 decoding crafted SGI RLE image files could result in buffer over-read |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/commit/120eea2e4547a7d1826afdf01563035844f0b7d5 |
|
|
|
|
|
|
|
# Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-35653 |
|
|
|
|
|
|
|
Patch8: CVE-2020-35655.patch |
|
|
|
|
|
|
|
# CVE-2021-25290 negative-offset memcpy with an invalid size in TiffDecode.c |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/commit/86f02f7c70862a0954bfe8133736d352db978eaa |
|
|
|
|
|
|
|
# Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=1934685 |
|
|
|
|
|
|
|
Patch9: CVE-2021-25290.patch |
|
|
|
|
|
|
|
# CVE-2021-25292 backtracking regex in PDF parser could be used as a DOS attack |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/commit/3bce145966374dd39ce58a6fc0083f8d1890719c |
|
|
|
|
|
|
|
# Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2021-25292 |
|
|
|
|
|
|
|
Patch10: CVE-2021-25292.patch |
|
|
|
|
|
|
|
# CVE-2021-25293 out-of-bounds read in SGIRleDecode.c |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/commit/4853e522bddbec66022c0915b9a56255d0188bf9 |
|
|
|
|
|
|
|
# Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2021-25293 |
|
|
|
|
|
|
|
Patch11: CVE-2021-25293.patch |
|
|
|
|
|
|
|
# CVE-2021-27921 reported size of a contained image is not properly checked for a BLP container |
|
|
|
|
|
|
|
# CVE-2021-27922 reported size of a contained image is not properly checked for an ICNS container |
|
|
|
|
|
|
|
# CVE-2021-27923 reported size of a contained image is not properly checked for an ICO container |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/commit/480f6819b592d7f07b9a9a52a7656c10bbe07442 |
|
|
|
|
|
|
|
# Tracking bugs: |
|
|
|
|
|
|
|
# - https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2021-27921 |
|
|
|
|
|
|
|
# - https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2021-27922 |
|
|
|
|
|
|
|
# - https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2021-27923 |
|
|
|
|
|
|
|
Patch12: CVE-2021-27921_27922_27923.patch |
|
|
|
|
|
|
|
# CVE-2021-25288 and 25287 out-of-bounds read in J2kDecode in j2ku_gray_i and j2ku_graya_la |
|
|
|
|
|
|
|
# Upstream fixes this patch combines: |
|
|
|
|
|
|
|
# - Original fix for the CVEs: https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87 |
|
|
|
|
|
|
|
# - Older commit the fix is based on: https://github.com/python-pillow/Pillow/commit/cf6da6b79080a8c16984102fdc85f7ce28dca613 |
|
|
|
|
|
|
|
# Tracking bugs: |
|
|
|
|
|
|
|
# - https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2021-25287 |
|
|
|
|
|
|
|
# - https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2021-25288 |
|
|
|
|
|
|
|
Patch13: CVE-2021-25287_25288.patch |
|
|
|
|
|
|
|
# CVE-2021-28675 DoS in PsdImagePlugin |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/commit/22e9bee4ef225c0edbb9323f94c26cee0c623497 |
|
|
|
|
|
|
|
# Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2021-28675 |
|
|
|
|
|
|
|
Patch14: CVE-2021-28675.patch |
|
|
|
|
|
|
|
# CVE-2021-28676 infinite loop in FliDecode.c can lead to DoS |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/commit/bb6c11fb889e6c11b0ee122b828132ee763b5856 |
|
|
|
|
|
|
|
# Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2021-28676 |
|
|
|
|
|
|
|
Patch15: CVE-2021-28676.patch |
|
|
|
|
|
|
|
# CVE-2021-28677 DoS in the open phase via a malicious EPS file |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/commit/5a5e6db0abf4e7a638fb1b3408c4e495a096cb92 |
|
|
|
|
|
|
|
# Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2021-28677 |
|
|
|
|
|
|
|
Patch16: CVE-2021-28677.patch |
|
|
|
|
|
|
|
# CVE-2021-28678 improper check in BlpImagePlugin can lead to DoS |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/commit/496245aa4365d0827390bd0b6fbd11287453b3a1 |
|
|
|
|
|
|
|
# Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2021-28678 |
|
|
|
|
|
|
|
Patch17: CVE-2021-28678.patch |
|
|
|
|
|
|
|
# CVE-2021-34552: buffer overflow in Convert.c because it allow an attacker to pass |
|
|
|
|
|
|
|
# controlled parameters directly into a convert function |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/pull/5567 |
|
|
|
|
|
|
|
# Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=1982378 |
|
|
|
|
|
|
|
Patch18: CVE-2021-34552.patch |
|
|
|
|
|
|
|
# CVE-2022-22817: PIL.ImageMath.eval allows evaluation of arbitrary expressions |
|
|
|
|
|
|
|
# Upstream fixes: |
|
|
|
|
|
|
|
# https://github.com/python-pillow/Pillow/commit/8531b01d6cdf0b70f256f93092caa2a5d91afc11 |
|
|
|
|
|
|
|
# https://github.com/python-pillow/Pillow/commit/f84ab3bb8a0a196a52e8a76bebed2853362629de |
|
|
|
|
|
|
|
# Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=2042527 |
|
|
|
|
|
|
|
Patch19: CVE-2022-22817.patch |
|
|
|
|
|
|
|
# CVE-2022-22815 python-pillow: improperly initializes ImagePath.Path in path_getbbox() in path.c |
|
|
|
|
|
|
|
# CVE-2022-22816 python-pillow: buffer over-read during initialization of ImagePath.Path in path_getbbox() in path.c |
|
|
|
|
|
|
|
# Upstream fix: https://github.com/python-pillow/Pillow/commit/5543e4e2d409cd9e409bc64cdc77be0af007a31f |
|
|
|
|
|
|
|
# Memory issue fix: https://github.com/python-pillow/Pillow/pull/5958 |
|
|
|
|
|
|
|
# Tracking bugs: |
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2042511 |
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2042522 |
|
|
|
|
|
|
|
Patch20: CVE-2022-22815_CVE-2022-22816.patch |
|
|
|
|
|
|
|
|
|
|
|
# Obtain the tarball for a certain commit via: |
|
|
|
|
|
|
|
# wget --content-disposition https://github.com/python-imaging/Pillow/tarball/$commit |
|
|
|
|
|
|
|
Source0: https://github.com/python-imaging/Pillow/tarball/%{commit}/python-imaging-Pillow-%{version}-%{ahead}-g%{shortcommit}.tar.gz |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Add s390* and ppc* archs |
|
|
|
|
|
|
|
Patch0: python-pillow-archs.patch |
|
|
|
|
|
|
|
# Fix test hardcoded for little-endian |
|
|
|
|
|
|
|
Patch1: python-pillow_endian.patch |
|
|
|
|
|
|
|
Patch2: python-pillow-2.0.0_bytearray.patch |
|
|
|
|
|
|
|
Patch3: python-pillow-2.0.0_memleaks.patch |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel |
|
|
|
|
|
|
|
BuildRequires: python-setuptools |
|
|
|
|
|
|
|
BuildRequires: tkinter |
|
|
|
|
|
|
|
BuildRequires: tk-devel |
|
|
|
|
|
|
|
BuildRequires: python-sphinx |
|
|
|
|
|
|
|
BuildRequires: libjpeg-devel |
|
|
|
|
|
|
|
BuildRequires: zlib-devel |
|
|
|
|
|
|
|
BuildRequires: freetype-devel |
|
|
|
BuildRequires: freetype-devel |
|
|
|
BuildRequires: sane-backends-devel |
|
|
|
BuildRequires: gcc |
|
|
|
# Don't build with webp support on s390* and ppc* archs |
|
|
|
BuildRequires: ghostscript |
|
|
|
# see bug #962091 and #1127230 |
|
|
|
BuildRequires: lcms2-devel |
|
|
|
%ifnarch s390 s390x ppc ppc64 |
|
|
|
BuildRequires: libjpeg-devel |
|
|
|
|
|
|
|
BuildRequires: libtiff-devel |
|
|
|
BuildRequires: libwebp-devel |
|
|
|
BuildRequires: libwebp-devel |
|
|
|
%endif |
|
|
|
BuildRequires: openjpeg2-devel |
|
|
|
BuildRequires: PyQt4 |
|
|
|
BuildRequires: tk-devel |
|
|
|
BuildRequires: numpy |
|
|
|
BuildRequires: zlib-devel |
|
|
|
|
|
|
|
|
|
|
|
%if %{with_python3} |
|
|
|
BuildRequires: python3-cffi |
|
|
|
BuildRequires: python3-devel |
|
|
|
BuildRequires: python3-devel |
|
|
|
|
|
|
|
BuildRequires: python3-numpy |
|
|
|
BuildRequires: python3-setuptools |
|
|
|
BuildRequires: python3-setuptools |
|
|
|
|
|
|
|
%if 0%{?with_docs} |
|
|
|
|
|
|
|
BuildRequires: python3-sphinx |
|
|
|
|
|
|
|
BuildRequires: python3-sphinx_rtd_theme |
|
|
|
|
|
|
|
%endif # with_docs |
|
|
|
BuildRequires: python3-tkinter |
|
|
|
BuildRequires: python3-tkinter |
|
|
|
BuildRequires: python3-PyQt4 |
|
|
|
|
|
|
|
BuildRequires: python3-numpy |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Provides: python-imaging = %{version}-%{release} |
|
|
|
# For EpsImagePlugin.py |
|
|
|
Obsoletes: python-imaging <= 1.1.7-12 |
|
|
|
Requires: ghostscript |
|
|
|
|
|
|
|
|
|
|
|
%if %{with_python3} |
|
|
|
%global __provides_exclude_from ^%{python3_sitearch}/PIL/.*\\.so$ |
|
|
|
Provides: python3-imaging = %{version}-%{release} |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#%filter_provides_in %{python_sitearch} |
|
|
|
|
|
|
|
#%filter_provides_in %{python3_sitearch} |
|
|
|
|
|
|
|
#%filter_setup |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description |
|
|
|
%description |
|
|
|
Python image processing library, fork of the Python Imaging Library (PIL) |
|
|
|
Python image processing library, fork of the Python Imaging Library (PIL) |
|
|
@ -77,315 +146,435 @@ Python image processing library, fork of the Python Imaging Library (PIL) |
|
|
|
This library provides extensive file format support, an efficient |
|
|
|
This library provides extensive file format support, an efficient |
|
|
|
internal representation, and powerful image processing capabilities. |
|
|
|
internal representation, and powerful image processing capabilities. |
|
|
|
|
|
|
|
|
|
|
|
There are five subpackages: tk (tk interface), qt (PIL image wrapper for Qt), |
|
|
|
There are these subpackages: tk (tk interface), |
|
|
|
sane (scanning devices interface), devel (development) and doc (documentation). |
|
|
|
devel (development) and doc (documentation). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel |
|
|
|
%package -n python3-%{srcname} |
|
|
|
Summary: Development files for %{name} |
|
|
|
Summary: Python 3 image processing library |
|
|
|
Group: Development/Libraries |
|
|
|
%{?python_provide:%python_provide python3-%{srcname}} |
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release} |
|
|
|
Provides: python3-imaging = %{version}-%{release} |
|
|
|
Requires: python-devel, libjpeg-devel, zlib-devel |
|
|
|
# For MicImagePlugin.py, FpxImagePlugin.py |
|
|
|
Provides: python-imaging-devel = %{version}-%{release} |
|
|
|
|
|
|
|
Obsoletes: python-imaging-devel <= 1.1.7-12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel |
|
|
|
%description -n python3-%{srcname} |
|
|
|
Development files for %{name}. |
|
|
|
Python image processing library, fork of the Python Imaging Library (PIL) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This library provides extensive file format support, an efficient |
|
|
|
|
|
|
|
internal representation, and powerful image processing capabilities. |
|
|
|
|
|
|
|
|
|
|
|
%package doc |
|
|
|
There are these subpackages: tk (tk interface), |
|
|
|
Summary: Documentation for %{name} |
|
|
|
devel (development) and doc (documentation). |
|
|
|
Group: Documentation |
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{srcname}-devel |
|
|
|
|
|
|
|
Summary: Development files for %{srcname} |
|
|
|
|
|
|
|
Requires: python3-devel, libjpeg-devel, zlib-devel |
|
|
|
|
|
|
|
Requires: python3-%{srcname}%{?_isa} = %{version}-%{release} |
|
|
|
|
|
|
|
%{?python_provide:%python_provide python3-%{srcname}-devel} |
|
|
|
|
|
|
|
Provides: python3-imaging-devel = %{version}-%{release} |
|
|
|
|
|
|
|
|
|
|
|
%description doc |
|
|
|
%description -n python3-%{srcname}-devel |
|
|
|
Documentation for %{name}. |
|
|
|
Development files for %{srcname}. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package sane |
|
|
|
%package -n python3-%{srcname}-doc |
|
|
|
Summary: Python module for using scanners |
|
|
|
Summary: Documentation for %{srcname} |
|
|
|
Group: System Environment/Libraries |
|
|
|
BuildArch: noarch |
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release} |
|
|
|
Requires: python3-%{srcname} = %{version}-%{release} |
|
|
|
Provides: python-imaging-sane = %{version}-%{release} |
|
|
|
%{?python_provide:%python_provide python3-%{srcname}-doc} |
|
|
|
Obsoletes: python-imaging-sane <= 1.1.7-12 |
|
|
|
Provides: python3-imaging-doc = %{version}-%{release} |
|
|
|
|
|
|
|
|
|
|
|
%description sane |
|
|
|
%description -n python3-%{srcname}-doc |
|
|
|
This package contains the sane module for Python which provides access to |
|
|
|
Documentation for %{srcname}. |
|
|
|
various raster scanning devices such as flatbed scanners and digital cameras. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package tk |
|
|
|
%package -n python3-%{srcname}-tk |
|
|
|
Summary: Tk interface for %{name} |
|
|
|
Summary: Tk interface for %{srcname} |
|
|
|
Group: System Environment/Libraries |
|
|
|
Requires: python3-tkinter |
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release} |
|
|
|
Requires: python3-%{srcname}%{?_isa} = %{version}-%{release} |
|
|
|
Requires: tkinter |
|
|
|
%{?python_provide:%python_provide python3-%{srcname}-tk} |
|
|
|
Provides: python-imaging-tk = %{version}-%{release} |
|
|
|
Provides: python3-imaging-tk = %{version}-%{release} |
|
|
|
Obsoletes: python-imaging-tk <= 1.1.7-12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description tk |
|
|
|
%description -n python3-%{srcname}-tk |
|
|
|
Tk interface for %{name}. |
|
|
|
Tk interface for %{name}. |
|
|
|
|
|
|
|
|
|
|
|
%package qt |
|
|
|
|
|
|
|
Summary: PIL image wrapper for Qt |
|
|
|
|
|
|
|
Group: System Environment/Libraries |
|
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release} |
|
|
|
|
|
|
|
Requires: PyQt4 |
|
|
|
|
|
|
|
Provides: python-imaging-qt = %{version}-%{release} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description qt |
|
|
|
%prep |
|
|
|
PIL image wrapper for Qt. |
|
|
|
%autosetup -p1 -n Pillow-%{version} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_python3} |
|
|
|
%build |
|
|
|
%package -n %{name3} |
|
|
|
%py3_build |
|
|
|
Summary: Python 3 image processing library |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name3} |
|
|
|
%if 0%{?with_docs} |
|
|
|
%{_description} |
|
|
|
PYTHONPATH=$PWD/build/%py3_libbuilddir make -C docs html BUILDDIR=_build_py3 SPHINXBUILD=sphinx-build-%python3_version |
|
|
|
|
|
|
|
rm -f docs/_build_py3/html/.buildinfo |
|
|
|
|
|
|
|
%endif # with_docs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name3}-devel |
|
|
|
%install |
|
|
|
Summary: Development files for %{name3} |
|
|
|
install -d %{buildroot}/%{py3_incdir}/Imaging |
|
|
|
Group: Development/Libraries |
|
|
|
install -m 644 src/libImaging/*.h %{buildroot}/%{py3_incdir}/Imaging |
|
|
|
Requires: %{name3}%{?_isa} = %{version}-%{release} |
|
|
|
%py3_install |
|
|
|
Requires: python3-devel, libjpeg-devel, zlib-devel |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name3}-devel |
|
|
|
|
|
|
|
Development files for %{name3}. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check |
|
|
|
|
|
|
|
ln -s $PWD/Images $PWD/build/%py3_libbuilddir/Images |
|
|
|
|
|
|
|
cp -R $PWD/Tests $PWD/build/%py3_libbuilddir/Tests |
|
|
|
|
|
|
|
cp -R $PWD/selftest.py $PWD/build/%py3_libbuilddir/selftest.py |
|
|
|
|
|
|
|
pushd build/%py3_libbuilddir |
|
|
|
|
|
|
|
PYTHONPATH=$PWD %{__python3} selftest.py |
|
|
|
|
|
|
|
popd |
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name3}-doc |
|
|
|
|
|
|
|
Summary: Documentation for %{name3} |
|
|
|
|
|
|
|
Group: Documentation |
|
|
|
|
|
|
|
Requires: %{name3} = %{version}-%{release} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name3}-doc |
|
|
|
%files -n python3-%{srcname} |
|
|
|
Documentation for %{name3}. |
|
|
|
%doc README.rst CHANGES.rst |
|
|
|
|
|
|
|
%license docs/COPYING |
|
|
|
|
|
|
|
%{python3_sitearch}/* |
|
|
|
|
|
|
|
# These are in subpackages |
|
|
|
|
|
|
|
%exclude %{python3_sitearch}/PIL/_imagingtk* |
|
|
|
|
|
|
|
%exclude %{python3_sitearch}/PIL/ImageTk* |
|
|
|
|
|
|
|
%exclude %{python3_sitearch}/PIL/SpiderImagePlugin* |
|
|
|
|
|
|
|
%exclude %{python3_sitearch}/PIL/ImageQt* |
|
|
|
|
|
|
|
%exclude %{python3_sitearch}/PIL/__pycache__/ImageTk* |
|
|
|
|
|
|
|
%exclude %{python3_sitearch}/PIL/__pycache__/SpiderImagePlugin* |
|
|
|
|
|
|
|
%exclude %{python3_sitearch}/PIL/__pycache__/ImageQt* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{srcname}-devel |
|
|
|
|
|
|
|
%{py3_incdir}/Imaging/ |
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name3}-sane |
|
|
|
%files -n python3-%{srcname}-doc |
|
|
|
Summary: Python module for using scanners |
|
|
|
%if 0%{?with_docs} |
|
|
|
Group: System Environment/Libraries |
|
|
|
%doc docs/_build_py3/html |
|
|
|
Requires: %{name3}%{?_isa} = %{version}-%{release} |
|
|
|
%endif # with_docs |
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name3}-sane |
|
|
|
%files -n python3-%{srcname}-tk |
|
|
|
This package contains the sane module for Python which provides access to |
|
|
|
%{python3_sitearch}/PIL/_imagingtk* |
|
|
|
various raster scanning devices such as flatbed scanners and digital cameras. |
|
|
|
%{python3_sitearch}/PIL/ImageTk* |
|
|
|
|
|
|
|
%{python3_sitearch}/PIL/SpiderImagePlugin* |
|
|
|
|
|
|
|
%{python3_sitearch}/PIL/__pycache__/ImageTk* |
|
|
|
|
|
|
|
%{python3_sitearch}/PIL/__pycache__/SpiderImagePlugin* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name3}-tk |
|
|
|
%changelog |
|
|
|
Summary: Tk interface for %{name3} |
|
|
|
* Fri Feb 11 2022 Charalampos Stratakis <cstratak@redhat.com> - 5.1.1-18 |
|
|
|
Group: System Environment/Libraries |
|
|
|
- Fixup for CVE-2022-22817 |
|
|
|
Requires: %{name3}%{?_isa} = %{version}-%{release} |
|
|
|
- Security fixes for CVE-2022-22815, CVE-2022-22816 |
|
|
|
Requires: tkinter |
|
|
|
Resolves: rhbz#2042522 |
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name3}-tk |
|
|
|
* Fri Feb 04 2022 Charalampos Stratakis <cstratak@redhat.com> - 5.1.1-17 |
|
|
|
Tk interface for %{name3}. |
|
|
|
- Fix for CVE-2022-22817 |
|
|
|
|
|
|
|
Resolves: rhbz#2042527 |
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name3}-qt |
|
|
|
* Mon Aug 02 2021 Charalampos Stratakis <cstratak@redhat.com> - 5.1.1-16 |
|
|
|
Summary: PIL image wrapper for Qt |
|
|
|
- Fix for CVE-2021-34552 |
|
|
|
Group: System Environment/Libraries |
|
|
|
Resolves: rhbz#1982378 |
|
|
|
Obsoletes: %{name3} <= 2.0.0-5.git93a488e8 |
|
|
|
|
|
|
|
Requires: %{name3}%{?_isa} = %{version}-%{release} |
|
|
|
|
|
|
|
Requires: python3-PyQt4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name3}-qt |
|
|
|
* Mon Jun 14 2021 Lumír Balhar <lbalhar@redhat.com> - 5.1.1-15 |
|
|
|
PIL image wrapper for Qt. |
|
|
|
- Fixes for CVE-2021-25288, CVE-2021-25287, CVE-2021-28675, CVE-2021-28676, |
|
|
|
|
|
|
|
CVE-2021-28677 and CVE-2021-28678 |
|
|
|
|
|
|
|
Resolves: rhbz#1958231, rhbz#1958226, rhbz#1958240, rhbz#1958252, rhbz#1958257, rhbz#1958263 |
|
|
|
|
|
|
|
|
|
|
|
%endif |
|
|
|
* Fri Apr 09 2021 Lumír Balhar <lbalhar@redhat.com> - 5.1.1-14 |
|
|
|
|
|
|
|
- Fixes for CVE-2021-25290, CVE-2021-25292, CVE-2021-25293, CVE-2021-27921 |
|
|
|
|
|
|
|
CVE-2021-27922, and CVE-2021-27923 |
|
|
|
|
|
|
|
Resolves: rhbz#1934685 rhbz#1934699 rhbz#1934705 rhbz#1935384 rhbz#1935396 rhbz#1935401 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 18 2021 Lumír Balhar <lbalhar@redhat.com> - 5.1.1-13 |
|
|
|
|
|
|
|
- Fixes for CVE-2020-35653 and CVE-2020-35655 |
|
|
|
|
|
|
|
Resolves: rhbz#1915420 rhbz#1915432 |
|
|
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
* Mon Jul 13 2020 Lumír Balhar <lbalhar@redhat.com> - 5.1.1-12 |
|
|
|
%setup -q -n python-imaging-Pillow-%{shortcommit} |
|
|
|
- Fix for CVE-2020-11538 |
|
|
|
%patch0 -p1 -b .archs |
|
|
|
Resolves: rhbz#1852814 |
|
|
|
%patch1 -p1 -b .endian |
|
|
|
|
|
|
|
%patch2 -p1 -b .byte_array |
|
|
|
|
|
|
|
%patch3 -p1 -b .memleaks |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_python3} |
|
|
|
* Wed Mar 04 2020 Lumír Balhar <lbalhar@redhat.com> - 5.1.1-11 |
|
|
|
# Create Python 3 source tree |
|
|
|
- Fix for CVE-2020-5313 |
|
|
|
rm -rf %{py3dir} |
|
|
|
Resolves: rhbz#1789532 |
|
|
|
cp -a . %{py3dir} |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 17 2020 Lumír Balhar <lbalhar@redhat.com> - 5.1.1-10 |
|
|
|
|
|
|
|
- Bump and rebuild for gating to deliver CVE fixes |
|
|
|
|
|
|
|
Resolves: rhbz#1789535 |
|
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
* Mon Feb 17 2020 Lumír Balhar <lbalhar@redhat.com> - 5.1.1-9 |
|
|
|
# Build Python 2 modules |
|
|
|
- Fix for CVE-2020-5311 - out-of-bounds write in expandrow |
|
|
|
find -name '*.py' | xargs sed -i '1s|^#!.*python|#!%{__python}|' |
|
|
|
Resolves: rhbz#1789535 |
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pushd Sane |
|
|
|
* Fri Feb 14 2020 Lumír Balhar <lbalhar@redhat.com> - 5.1.1-8 |
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build |
|
|
|
- Combined fixes for CVE-2020-5312 and CVE-2019-16865 |
|
|
|
popd |
|
|
|
Resolves: rhbz#1789533 |
|
|
|
|
|
|
|
Resolves: rhbz#1774066 |
|
|
|
|
|
|
|
|
|
|
|
pushd docs |
|
|
|
* Tue Nov 27 2018 Lumír Balhar <lbalhar@redhat.com> - 5.1.1-7 |
|
|
|
#PYTHONPATH=$PWD/.. make html |
|
|
|
- Add upstream patch to solve build-time warning |
|
|
|
rm -f _build/html/.buildinfo |
|
|
|
- Move patches to dist-git |
|
|
|
popd |
|
|
|
- Resolves: rhbz#1639348 |
|
|
|
|
|
|
|
|
|
|
|
%if %{with_python3} |
|
|
|
* Mon Oct 15 2018 Lumír Balhar <lbalhar@redhat.com> - 5.1.1-6 |
|
|
|
# Build Python 3 modules |
|
|
|
- Add patches to fix issues found by static code analysis |
|
|
|
pushd %{py3dir} |
|
|
|
- Resolves: rhbz#1602669 |
|
|
|
find -name '*.py' | xargs sed -i '1s|^#!.*python|#!%{__python3}|' |
|
|
|
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pushd Sane |
|
|
|
* Wed Jun 27 2018 Petr Viktorin <pviktori@redhat.com> - 5.1.1-5 |
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build |
|
|
|
- Correct dependency on python3-tkinter |
|
|
|
popd |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pushd docs |
|
|
|
* Tue Jun 19 2018 Petr Viktorin <pviktori@redhat.com> - 5.1.1-4 |
|
|
|
#PYTHONPATH=$PWD/.. make html |
|
|
|
- Drop dependency on python3-olefile (breaking MicImagePlugin.py, FpxImagePlugin) |
|
|
|
rm -f _build/html/.buildinfo |
|
|
|
|
|
|
|
popd |
|
|
|
|
|
|
|
popd |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 14 2018 Petr Viktorin <pviktori@redhat.com> - 5.1.1-3 |
|
|
|
|
|
|
|
- Remove the Python 2 subpackage |
|
|
|
|
|
|
|
- Remove the libimagequant dependency |
|
|
|
|
|
|
|
The imagequant library was only used to support a non-default image |
|
|
|
|
|
|
|
quantization mode. |
|
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
* Thu May 31 2018 Petr Viktorin <pviktori@redhat.com> - 5.1.1-2 |
|
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
- Remove the python2 version of docs |
|
|
|
|
|
|
|
- Remove Qt subpackages |
|
|
|
# Install Python 2 modules |
|
|
|
- Drop dependency on python2-olefile (breaking MicImagePlugin.py, FpxImagePlugin) |
|
|
|
install -d $RPM_BUILD_ROOT/%{py2_incdir}/Imaging |
|
|
|
|
|
|
|
install -m 644 libImaging/*.h $RPM_BUILD_ROOT/%{py2_incdir}/Imaging |
|
|
|
|
|
|
|
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT |
|
|
|
|
|
|
|
pushd Sane |
|
|
|
|
|
|
|
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT |
|
|
|
|
|
|
|
popd |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_python3} |
|
|
|
* Wed Apr 25 2018 Sandro Mani <manisandro@gmail.com> - 5.1.1-1 |
|
|
|
# Install Python 3 modules |
|
|
|
- Update to 5.1.1 |
|
|
|
pushd %{py3dir} |
|
|
|
|
|
|
|
install -d $RPM_BUILD_ROOT/%{py3_incdir}/Imaging |
|
|
|
|
|
|
|
install -m 644 libImaging/*.h $RPM_BUILD_ROOT/%{py3_incdir}/Imaging |
|
|
|
|
|
|
|
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT |
|
|
|
|
|
|
|
pushd Sane |
|
|
|
|
|
|
|
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT |
|
|
|
|
|
|
|
popd |
|
|
|
|
|
|
|
popd |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The scripts are packaged in %%doc |
|
|
|
* Thu Apr 05 2018 Sandro Mani <manisandro@gmail.com> - 5.1.0-1 |
|
|
|
rm -rf $RPM_BUILD_ROOT%{_bindir} |
|
|
|
- Update to 5.1.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 07 2018 Sandro Mani <manisandro@gmail.com> - 5.0.0-3 |
|
|
|
|
|
|
|
- Add missing BR: gcc |
|
|
|
|
|
|
|
|
|
|
|
%check |
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2 |
|
|
|
# Check Python 2 modules |
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
|
|
|
ln -s $PWD/Images $RPM_BUILD_ROOT%{python_sitearch}/Images |
|
|
|
|
|
|
|
ln -s $PWD/Tests $RPM_BUILD_ROOT%{python_sitearch}/Tests |
|
|
|
|
|
|
|
ln -s $PWD/selftest.py $RPM_BUILD_ROOT%{python_sitearch}/selftest.py |
|
|
|
|
|
|
|
pushd $RPM_BUILD_ROOT%{python_sitearch} |
|
|
|
|
|
|
|
%{__python} selftest.py |
|
|
|
|
|
|
|
%{__python} Tests/run.py |
|
|
|
|
|
|
|
popd |
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{python_sitearch}/Images |
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{python_sitearch}/Tests |
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{python_sitearch}/selftest.py* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_python3} |
|
|
|
|
|
|
|
# Check Python 3 modules |
|
|
|
|
|
|
|
pushd %{py3dir} |
|
|
|
|
|
|
|
ln -s $PWD/Images $RPM_BUILD_ROOT%{python3_sitearch}/Images |
|
|
|
|
|
|
|
ln -s $PWD/Tests $RPM_BUILD_ROOT%{python3_sitearch}/Tests |
|
|
|
|
|
|
|
ln -s $PWD/selftest.py $RPM_BUILD_ROOT%{python3_sitearch}/selftest.py |
|
|
|
|
|
|
|
pushd $RPM_BUILD_ROOT%{python3_sitearch} |
|
|
|
|
|
|
|
%{__python3} selftest.py |
|
|
|
|
|
|
|
%{__python3} Tests/run.py |
|
|
|
|
|
|
|
popd |
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{python3_sitearch}/Images |
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{python3_sitearch}/Tests |
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{python3_sitearch}/selftest.py* |
|
|
|
|
|
|
|
popd |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 03 2018 Sandro Mani <manisandro@gmail.com> - 5.0.0-1 |
|
|
|
|
|
|
|
- Update to 5.0.0 |
|
|
|
|
|
|
|
|
|
|
|
%files |
|
|
|
* Tue Oct 03 2017 Sandro Mani <manisandro@gmail.com> - 4.3.0-1 |
|
|
|
%doc README.rst docs/HISTORY.txt COPYING |
|
|
|
- Update to 4.3.0 |
|
|
|
%{python_sitearch}/* |
|
|
|
|
|
|
|
# These are in subpackages |
|
|
|
|
|
|
|
%exclude %{python_sitearch}/*sane* |
|
|
|
|
|
|
|
%exclude %{python_sitearch}/_imagingtk* |
|
|
|
|
|
|
|
%exclude %{python_sitearch}/PIL/ImageTk* |
|
|
|
|
|
|
|
%exclude %{python_sitearch}/PIL/SpiderImagePlugin* |
|
|
|
|
|
|
|
%exclude %{python_sitearch}/PIL/ImageQt* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel |
|
|
|
* Tue Sep 05 2017 Troy Dawson <tdawson@redhat.com> - 4.2.1-5 |
|
|
|
%{py2_incdir}/Imaging/ |
|
|
|
- Cleanup spec file conditionals |
|
|
|
|
|
|
|
|
|
|
|
%files doc |
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-4 |
|
|
|
#%doc Scripts Images docs/_build/html |
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
|
|
%files sane |
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-3 |
|
|
|
%doc Sane/CHANGES Sane/demo*.py Sane/sanedoc.txt |
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
|
|
|
%{python_sitearch}/*sane* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files tk |
|
|
|
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 4.2.1-2 |
|
|
|
%{python_sitearch}/_imagingtk* |
|
|
|
- Rebuild due to bug in RPM (RHBZ #1468476) |
|
|
|
%{python_sitearch}/PIL/ImageTk* |
|
|
|
|
|
|
|
%{python_sitearch}/PIL/SpiderImagePlugin* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files qt |
|
|
|
* Thu Jul 06 2017 Sandro Mani <manisandro@gmail.com> - 4.2.1-1 |
|
|
|
%{python_sitearch}/PIL/ImageQt* |
|
|
|
- Update to 4.2.1 |
|
|
|
|
|
|
|
|
|
|
|
%if %{with_python3} |
|
|
|
* Sat Jul 01 2017 Sandro Mani <manisandro@gmail.com> - 4.2.0-1 |
|
|
|
%files -n %{name3} |
|
|
|
- Update to 4.2.0 |
|
|
|
%doc README.rst docs/HISTORY.txt COPYING |
|
|
|
|
|
|
|
%{python3_sitearch}/* |
|
|
|
|
|
|
|
# These are in subpackages |
|
|
|
|
|
|
|
%exclude %{python3_sitearch}/*sane* |
|
|
|
|
|
|
|
%exclude %{python3_sitearch}/_imagingtk* |
|
|
|
|
|
|
|
%exclude %{python3_sitearch}/PIL/ImageTk* |
|
|
|
|
|
|
|
%exclude %{python3_sitearch}/PIL/SpiderImagePlugin* |
|
|
|
|
|
|
|
%exclude %{python3_sitearch}/PIL/ImageQt* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name3}-devel |
|
|
|
* Fri Apr 28 2017 Sandro Mani <manisandro@gmail.com> - 4.1.1-1 |
|
|
|
%{py3_incdir}/Imaging/ |
|
|
|
- Update to 4.1.1 |
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name3}-doc |
|
|
|
* Wed Apr 05 2017 Sandro Mani <manisandro@gmail.com> - 4.1.0-1 |
|
|
|
#%doc Scripts Images docs/_build/html |
|
|
|
- Update to 4.1.0 |
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name3}-sane |
|
|
|
* Wed Feb 15 2017 Sandro Mani <manisandro@gmail.com> - 4.0.0-3 |
|
|
|
%doc Sane/CHANGES Sane/demo*.py Sane/sanedoc.txt |
|
|
|
- Fix some __pycache__ files in wrong subpackage (#1422606) |
|
|
|
%{python3_sitearch}/*sane* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name3}-tk |
|
|
|
* Wed Feb 01 2017 Sandro Mani <manisandro@gmail.com> - 4.0.0-2 |
|
|
|
%{python3_sitearch}/_imagingtk* |
|
|
|
- Rebuild (libwebp) |
|
|
|
%{python3_sitearch}/PIL/ImageTk* |
|
|
|
|
|
|
|
%{python3_sitearch}/PIL/SpiderImagePlugin* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name3}-qt |
|
|
|
* Tue Jan 03 2017 Sandro Mani <manisandro@gmail.com> - 4.0.0-1 |
|
|
|
%{python3_sitearch}/PIL/ImageQt* |
|
|
|
- Update to 4.0.0 |
|
|
|
|
|
|
|
|
|
|
|
%endif |
|
|
|
* Mon Dec 12 2016 Miro Hrončok <mhroncok@redhat.com> - 3.4.2-3 |
|
|
|
|
|
|
|
- Enable docs build |
|
|
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
* Mon Dec 12 2016 Miro Hrončok <mhroncok@redhat.com> - 3.4.2-2 |
|
|
|
* Mon Oct 06 2014 Michal Minar <miminar@redhat.com> 2.0.0-19gitd1c6db8 |
|
|
|
- Rebuild for Python 3.6 |
|
|
|
- Reenabled webp support on little endian archs. |
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 19 2016 Sandro Mani <manisandro@gmail.com> - 3.4.2-1 |
|
|
|
|
|
|
|
- Update to 3.4.2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 04 2016 Sandro Mani <manisandro@gmail.com> - 3.4.1-1 |
|
|
|
|
|
|
|
- Update to 3.4.1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 03 2016 Sandro Mani <manisandro@gmail.com> - 3.4.0-1 |
|
|
|
|
|
|
|
- Update to 3.4.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 18 2016 Sandro Mani <manisandro@gmail.com> - 3.3.1-1 |
|
|
|
|
|
|
|
- Update to 3.3.1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.0-2 |
|
|
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 02 2016 Sandro Mani <manisandro@gmail.com> - 3.3.0-1 |
|
|
|
|
|
|
|
- Update to 3.3.0 |
|
|
|
|
|
|
|
- Modernize spec |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 01 2016 Sandro Mani <manisandro@gmail.com> - 3.2.0-1 |
|
|
|
|
|
|
|
- Update to 3.2.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 10 2016 Sandro Mani <manisandro@gmail.com> - 3.1.1-3 |
|
|
|
|
|
|
|
- Fix broken python3-pillow package description |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Feb 07 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 3.1.1-2 |
|
|
|
|
|
|
|
- Fix provides |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Sandro Mani <manisandro@gmail.com> - 3.1.1-1 |
|
|
|
|
|
|
|
- Update to 3.1.1 |
|
|
|
|
|
|
|
- Fixes CVE-2016-0740, CVE-2016-0775 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 11 2016 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.0-2 |
|
|
|
|
|
|
|
- Fix executable files in doc package bringing in python 2 for the python3 doc |
|
|
|
|
|
|
|
packages |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 04 2016 Sandro Mani <manisandro@gmail.com> - 3.1.0-1 |
|
|
|
|
|
|
|
- Update to 3.1.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Dec 29 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 3.0.0-5 |
|
|
|
|
|
|
|
- Build with docs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Dec 28 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 3.0.0-4 |
|
|
|
|
|
|
|
- Rebuilt for libwebp soname bump |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 3.0.0-3 |
|
|
|
|
|
|
|
- Rebuilt for Python3.5 rebuild with docs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 3.0.0-2 |
|
|
|
|
|
|
|
- Rebuilt for Python3.5 rebuild without docs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 02 2015 Sandro Mani <manisandro@gmail.com> - 3.0.0-1 |
|
|
|
|
|
|
|
- Update to 3.0.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2015 Sandro Mani <manisandro@gmail.com> - 2.9.0-2 |
|
|
|
|
|
|
|
- Fix python3-pillow-tk Requires: tkinter -> python3-tkinter (#1248085) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 02 2015 Sandro Mani <manisandro@gmail.com> - 2.9.0-1 |
|
|
|
|
|
|
|
- Update to 2.9.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.2-2 |
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 08 2015 Sandro Mani <manisandro@gmail.com> - 2.8.2-1 |
|
|
|
|
|
|
|
- Update to 2.8.2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 02 2015 Sandro Mani <manisandro@gmail.com> - 2.8.1-1 |
|
|
|
|
|
|
|
- Update to 2.8.1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Apr 01 2015 Sandro Mani <manisandro@gmail.com> - 2.8.0-1 |
|
|
|
|
|
|
|
- Update to 2.8.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 12 2015 Sandro Mani <manisandro@gmail.com> - 2.7.0-1 |
|
|
|
|
|
|
|
- Update to 2.7.0 |
|
|
|
|
|
|
|
- Drop sane subpackage, is in python-sane now |
|
|
|
|
|
|
|
- Fix python3 headers directory |
|
|
|
|
|
|
|
- Drop Obsoletes: python3-pillow on python3-pillow-qt |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 13 2014 Sandro Mani <manisandro@gmail.com> - 2.6.1-1 |
|
|
|
|
|
|
|
- Update to 2.6.1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 02 2014 Sandro Mani <manisandro@gmail.com> - 2.6.0-1 |
|
|
|
|
|
|
|
- Update to 2.6.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 20 2014 Sandro Mani <manisandro@gmail.com> - 2.5.3-3 |
|
|
|
|
|
|
|
- Rebuilding again to resolve transient build error that caused BZ#1131723 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 19 2014 Stephen Gallagher <sgallagh@redhat.com> - 2.5.3-2 |
|
|
|
|
|
|
|
- Rebuilding to resolve transient build error that caused BZ#1131723 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 19 2014 Sandro Mani <manisandro@gmail.com> - 2.5.3-1 |
|
|
|
|
|
|
|
- Update to 2.5.3 (Fix CVE-2014-3598, a DOS in the Jpeg2KImagePlugin) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.2-2 |
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 13 2014 Sandro Mani <manisandro@gmail.com> - 2.5.2-1 |
|
|
|
|
|
|
|
- Update to 2.5.2 (Fix CVE-2014-3589, a DOS in the IcnsImagePlugin) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 26 2014 Sandro Mani <manisandro@gmail.com> - 2.5.1-2 |
|
|
|
|
|
|
|
- Reenable jpeg2k tests on big endian arches |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 15 2014 Sandro Mani <manisandro@gmail.com> - 2.5.1-1 |
|
|
|
|
|
|
|
- Update to 2.5.1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 02 2014 Sandro Mani <manisandro@gmail.com> - 2.5.0-1 |
|
|
|
|
|
|
|
- Update to 2.5.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-11 |
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 28 2014 Sandro Mani <manisandro@gmail.com> - 2.4.0-10 |
|
|
|
|
|
|
|
- Rebuild with docs enabled |
|
|
|
|
|
|
|
- Update python-pillow_openjpeg-2.1.0.patch |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 27 2014 Sandro Mani <manisandro@gmail.com> - 2.4.0-9 |
|
|
|
|
|
|
|
- Rebuild against openjpeg-2.1.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 23 2014 Dan Horák <dan[at]danny.cz> - 2.4.0-8 |
|
|
|
|
|
|
|
- skip jpeg2k tests on big endian arches (#1100762) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 21 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 2.4.0-7 |
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/f21tcl86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 13 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.4.0-6 |
|
|
|
|
|
|
|
- Set with_docs to 1 to build docs. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 13 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.4.0-5 |
|
|
|
|
|
|
|
- Bootstrap building sphinx docs because of circular dependency with sphinx. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 2.4.0-4 |
|
|
|
|
|
|
|
- Rebuild for Python 3.4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Apr 22 2014 Sandro Mani <manisandro@gmail.com> - 2.4.0-3 |
|
|
|
|
|
|
|
- Add patch: Have the tempfile use a suffix with a dot |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 17 2014 Sandro Mani <manisandro@gmail.com> - 2.4.0-2 |
|
|
|
|
|
|
|
- Enable Jpeg2000 support |
|
|
|
|
|
|
|
- Enable webp support also on s390* archs, bug #962091 is now fixed |
|
|
|
|
|
|
|
- Add upstream patch for ghostscript detection |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Apr 02 2014 Sandro Mani <manisandro@gmail.com> - 2.4.0-1 |
|
|
|
|
|
|
|
- Update to 2.4.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 19 2014 Sandro Mani <manisandro@gmail.com> - 2.3.1-1 |
|
|
|
|
|
|
|
- Update to 2.3.1 (Fix insecure use of tempfile.mktemp (CVE-2014-1932 CVE-2014-1933)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Mar 13 2014 Jakub Dorňák <jdornak@redhat.com> - 2.3.0-5 |
|
|
|
|
|
|
|
- python-pillow does not provide python3-imaging |
|
|
|
|
|
|
|
(python3-pillow does) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 07 2014 Sandro Mani <manisandro@gmail.com> - 2.3.0-4 |
|
|
|
|
|
|
|
- Add missing ghostscript Requires and BuildRequires |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 06 2014 Sandro Mani <manisandro@gmail.com> - 2.3.0-3 |
|
|
|
|
|
|
|
- Remove python-pillow_help-theme.patch, add python-sphinx-theme-better BR |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 05 2014 Sandro Mani <manisandro@gmail.com> - 2.3.0-2 |
|
|
|
|
|
|
|
- Rebuild with docs enabled |
|
|
|
|
|
|
|
- Change lcms BR to lcms2 |
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 18 2014 Michal Minar <miminar@redhat.com> 2.0.0-18gitd1c6db8 |
|
|
|
* Thu Jan 02 2014 Sandro Mani <manisandro@gmail.com> - 2.3.0-1 |
|
|
|
- Disabled webp support on ppc64le due to #962091 and #1127230. |
|
|
|
- Update to 2.3.0 |
|
|
|
- Updated URL. |
|
|
|
- Build with doc disabled to break circular python-pillow -> python-sphinx -> python pillow dependency |
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 21 2014 Michal Minar <miminar@redhat.com> 2.0.0-17gitd1c6db8 |
|
|
|
* Wed Oct 23 2013 Sandro Mani <manisandro@gmail.com> - 2.2.1-2 |
|
|
|
- Wiped out some memory leaks. |
|
|
|
- Backport fix for decoding tiffs with correct byteorder, fixes rhbz#1019656 |
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.0.0-15.gitd1c6db8 |
|
|
|
* Wed Oct 02 2013 Sandro Mani <manisandro@gmail.com> - 2.2.1-1 |
|
|
|
- Mass rebuild 2014-01-24 |
|
|
|
- Update to 2.2.1 |
|
|
|
|
|
|
|
- Really enable webp on ppc, but leave disabled on s390 |
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 14 2014 Michal Minar <miminar@redhat.com> 2.0.0-14gitd1c6db8 |
|
|
|
* Thu Aug 29 2013 Sandro Mani <manisandro@gmail.com> - 2.1.0-4 |
|
|
|
- Fixed memory corruption. |
|
|
|
- Add patch to fix incorrect PyArg_ParseTuple tuple signature, fixes rhbz#962091 and rhbz#988767. |
|
|
|
- Resolves: rhbz#1001122 |
|
|
|
- Renable webp support on bigendian arches |
|
|
|
|
|
|
|
|
|
|
|
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0.0-13.gitd1c6db8 |
|
|
|
* Wed Aug 28 2013 Sandro Mani <manisandro@gmail.com> - 2.1.0-3 |
|
|
|
- Mass rebuild 2013-12-27 |
|
|
|
- Add patch to fix memory corruption caused by invalid palette size, see rhbz#1001122 |
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 29 2013 Roman Rakus <rrakus@redhat.com> - 2.0.0-12 |
|
|
|
* Tue Jul 30 2013 Karsten Hopp <karsten@redhat.com> 2.1.0-2 |
|
|
|
- Mark doc subpackage arch dependent. Docs are built depending on supported |
|
|
|
- Build without webp support on ppc* archs (#988767) |
|
|
|
features, which are different across archs. |
|
|
|
|
|
|
|
Resolves: rhbz#987839 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2013 Roman Rakus <rrakus@redhat.com> - 2.0.0-11 |
|
|
|
* Wed Jul 03 2013 Sandro Mani <manisandro@gmail.com> - 2.1.0-1 |
|
|
|
- Drop lcms support |
|
|
|
- Update to 2.1.0 |
|
|
|
Resolves: rhbz#987839 |
|
|
|
- Run tests in builddir, not installroot |
|
|
|
|
|
|
|
- Build python3-pillow docs with python3 |
|
|
|
|
|
|
|
- python-pillow_endian.patch upstreamed |
|
|
|
|
|
|
|
|
|
|
|
* Mon May 13 2013 Roman Rakus <rrakus@redhat.com> - 2.0.0-10 |
|
|
|
* Mon May 13 2013 Roman Rakus <rrakus@redhat.com> - 2.0.0-10 |
|
|
|
- Build without webp support on s390* archs |
|
|
|
- Build without webp support on s390* archs |
|
|
|