Compare commits
No commits in common. "c43893bfafedf943dc32ebe64f363b5bbbc23ec6" and "1aa73f2ceefe13346cd2d6eb166fdf52e8cf7388" have entirely different histories.
c43893bfaf
...
1aa73f2cee
Binary file not shown.
@ -1,14 +1,15 @@
|
||||
%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: 10.3.0
|
||||
Version: 9.5.0
|
||||
Release: 1
|
||||
Summary: Python image processing library
|
||||
License: MIT
|
||||
URL: http://python-pillow.github.io/
|
||||
Source0: https://files.pythonhosted.org/packages/source/p/pillow/pillow-%{version}.tar.gz
|
||||
Source0: https://github.com/python-pillow/Pillow/archive/%{version}/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
|
||||
@ -86,16 +87,15 @@ 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=$(echo $PWD/build/lib.linux-*) make -C docs html BUILDDIR=_build_py3 SPHINXBUILD=sphinx-build-%python3_version
|
||||
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
|
||||
|
||||
@ -105,10 +105,10 @@ install -m 644 src/libImaging/*.h %{buildroot}/%{py3_incdir}/Imaging
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
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-*
|
||||
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
|
||||
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,21 +147,6 @@ 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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user