From a6085eba1bf2385f0328acdc56df2fba627cbab4 Mon Sep 17 00:00:00 2001 From: shirely16 Date: Tue, 8 Jun 2021 14:17:38 +0800 Subject: [PATCH] add gcc buildRequires,install modified into cp -a --- python-pillow.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python-pillow.spec b/python-pillow.spec index 8f5d148..bd3e11c 100644 --- a/python-pillow.spec +++ b/python-pillow.spec @@ -5,7 +5,7 @@ Name: python-pillow Version: 8.1.1 -Release: 2 +Release: 3 Summary: Python image processing library License: MIT URL: http://python-pillow.github.io/ @@ -13,9 +13,10 @@ Source0: https://github.com/python-pillow/Pillow/archive/%{version}/Pillo Patch0: python-pillow_spinxwarn.patch Patch1: python-pillow_sphinx-issues.patch + Patch6000: backport-CVE-2021-27921_CVE-2021-27922_CVE-2021-27923.patch -BuildRequires: freetype-devel ghostscript lcms2-devel libimagequant-devel libjpeg-devel libraqm-devel libtiff-devel +BuildRequires: freetype-devel ghostscript lcms2-devel libimagequant-devel libjpeg-devel libraqm-devel libtiff-devel gcc BuildRequires: libwebp-devel openjpeg2-devel tk-devel zlib-devel python3-cffi python3-devel python3-numpy python3-olefile BuildRequires: python3-qt5 python3-setuptools python3-tkinter %if 0%{?with_docs} @@ -107,7 +108,7 @@ install -m 644 src/libImaging/*.h %{buildroot}/%{py3_incdir}/Imaging %check ln -s $PWD/Images $PWD/build/%py3_libbuilddir/Images cp -R $PWD/Tests $PWD/build/%py3_libbuilddir/Tests -install $PWD/selftest.py $PWD/build/%py3_libbuilddir/selftest.py +cp -a $PWD/selftest.py $PWD/build/%py3_libbuilddir/selftest.py pushd build/%py3_libbuilddir PYTHONPATH=$PWD %{__python3} selftest.py popd @@ -145,6 +146,9 @@ popd %{python3_sitearch}/PIL/__pycache__/ImageQt* %changelog +* Tue Jun 8 2021 hanhui - 8.1.1-3 +- add gcc buildRequires,install modified into cp -a + * Mon Mar 15 2021 wangye - 8.1.1-2 - Type:CVE - CVE:CVE-2021-27921 CVE-2021-27922 CVE-2021-27923 -- Gitee