Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
c43893bfaf
!159 Upgrade version to 10.3.0
From: @no_coke 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2024-04-07 08:43:55 +00:00
GuoCe
493fcc9e4a Upgrade version to 10.3.0 2024-04-02 11:20:43 +08:00
openeuler-ci-bot
bbe8d51394
!158 Upgrade version to 10.2.0
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2024-02-07 08:47:02 +00:00
cherry530
38347cf961 Upgrade version to 10.2.0
Signed-off-by: cherry530 <707078654@qq.com>
2024-02-07 15:04:59 +08:00
openeuler-ci-bot
3deba99d24
!149 Fix CVE-2023-50447
From: @wk333 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2024-01-24 02:27:59 +00:00
wk333
f20d298ebe Fix CVE-2023-50447 2024-01-24 09:32:11 +08:00
openeuler-ci-bot
325d7d83c6
!129 Update to 10.0.0
From: @Jason_828e 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2023-07-12 09:16:24 +00:00
chenzixuan
5da43dd452 updated to 10.0.0 2023-07-05 03:59:32 +08:00
openeuler-ci-bot
366693844e
!128 Fix compilation failure due to python-setuptools update to 66.0.0
From: @starlet-dx 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2023-05-08 02:18:10 +00:00
starlet-dx
5a8f207425 Fix compilation failure due to python-setuptools update to 66.0.0 2023-05-08 08:57:53 +08:00
2 changed files with 25 additions and 10 deletions

View File

@ -1,15 +1,14 @@
%global py3_incdir %(python3 -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc())')
%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 with_docs 0
Name: python-pillow
Version: 9.5.0
Version: 10.3.0
Release: 1
Summary: Python image processing library
License: MIT
URL: http://python-pillow.github.io/
Source0: https://github.com/python-pillow/Pillow/archive/%{version}/Pillow-%{version}.tar.gz
Source0: https://files.pythonhosted.org/packages/source/p/pillow/pillow-%{version}.tar.gz
BuildRequires: freetype-devel ghostscript lcms2-devel libimagequant-devel libjpeg-devel libtiff-devel
BuildRequires: libwebp-devel openjpeg2-devel tk-devel zlib-devel python3-cffi python3-devel python3-numpy python3-olefile
@ -87,15 +86,16 @@ Provides: python3-imaging-qt = %{version}-%{release}
%description -n python3-pillow-qt
Qt pillow image wrapper.
%prep
%autosetup -p1 -n Pillow-%{version}
%autosetup -p1 -n pillow-%{version}
%build
%py3_build
%if 0%{?with_docs}
PYTHONPATH=$PWD/build/%py3_libbuilddir make -C docs html BUILDDIR=_build_py3 SPHINXBUILD=sphinx-build-%python3_version
PYTHONPATH=$(echo $PWD/build/lib.linux-*) make -C docs html BUILDDIR=_build_py3 SPHINXBUILD=sphinx-build-%python3_version
rm -f docs/_build_py3/html/.buildinfo
%endif
@ -105,10 +105,10 @@ install -m 644 src/libImaging/*.h %{buildroot}/%{py3_incdir}/Imaging
%py3_install
%check
ln -s $PWD/Images $PWD/build/%py3_libbuilddir/Images
cp -R $PWD/Tests $PWD/build/%py3_libbuilddir/Tests
cp -a $PWD/selftest.py $PWD/build/%py3_libbuilddir/selftest.py
pushd build/%py3_libbuilddir
ln -s $PWD/Images $(echo $PWD/build/lib.linux-*)/Images
cp -R $PWD/Tests $(echo $PWD/build/lib.linux-*)/Tests
cp -a $PWD/selftest.py $(echo $PWD/build/lib.linux-*)/selftest.py
pushd build/lib.linux-*
PYTHONPATH=$PWD %{__python3} selftest.py
popd
export PYTHONPATH=%{buildroot}%{python3_sitearch}
@ -118,7 +118,7 @@ pytest --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v
%doc README.md CHANGES.rst
%license docs/COPYING
%{python3_sitearch}/PIL/
%{python3_sitearch}/Pillow-%{version}-py%{python3_version}.egg-info
%{python3_sitearch}/pillow-%{version}-py%{python3_version}.egg-info
%exclude %{python3_sitearch}/PIL/_imagingtk*
%exclude %{python3_sitearch}/PIL/ImageTk*
%exclude %{python3_sitearch}/PIL/SpiderImagePlugin*
@ -147,6 +147,21 @@ pytest --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v
%{python3_sitearch}/PIL/__pycache__/ImageQt*
%changelog
* Tue Apr 02 2024 GuoCe <guoce@kylinos.cn> - 10.3.0-1
- Upgrade version to 10.3.0
* Wed Feb 07 2024 xu_ping <707078654@qq.com> - 10.2.0-1
- Upgrade version to 10.2.0
* Wed Jan 24 2024 wangkai <13474090681@163.com> - 10.0.0-2
- Fix CVE-2023-50447
* Fri Jul 07 2023 chenzixuan <chenzixuan@kylinos.cn> - 10.0.0-1
- Fix compilation failure due to python-setuptools update to 66.0.0
* Mon May 08 2023 yaoxin <yao_xin001@hoperun.com> - 9.5.0-2
- Fix compilation failure due to python-setuptools update to 66.0.0
* Mon Apr 10 2023 yaoxin <yao_xin001@hoperun.com> - 9.5.0-1
- Update to 9.5.0