Compare commits
10 Commits
1aa73f2cee
...
c43893bfaf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c43893bfaf | ||
|
|
493fcc9e4a | ||
|
|
bbe8d51394 | ||
|
|
38347cf961 | ||
|
|
3deba99d24 | ||
|
|
f20d298ebe | ||
|
|
325d7d83c6 | ||
|
|
5da43dd452 | ||
|
|
366693844e | ||
|
|
5a8f207425 |
Binary file not shown.
@ -1,15 +1,14 @@
|
|||||||
%global py3_incdir %(python3 -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc())')
|
%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
|
%global with_docs 0
|
||||||
|
|
||||||
Name: python-pillow
|
Name: python-pillow
|
||||||
Version: 9.5.0
|
Version: 10.3.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Python image processing library
|
Summary: Python image processing library
|
||||||
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
|
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: 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
|
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
|
%description -n python3-pillow-qt
|
||||||
Qt pillow image wrapper.
|
Qt pillow image wrapper.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n Pillow-%{version}
|
%autosetup -p1 -n pillow-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%if 0%{?with_docs}
|
%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
|
rm -f docs/_build_py3/html/.buildinfo
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -105,10 +105,10 @@ install -m 644 src/libImaging/*.h %{buildroot}/%{py3_incdir}/Imaging
|
|||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
ln -s $PWD/Images $PWD/build/%py3_libbuilddir/Images
|
ln -s $PWD/Images $(echo $PWD/build/lib.linux-*)/Images
|
||||||
cp -R $PWD/Tests $PWD/build/%py3_libbuilddir/Tests
|
cp -R $PWD/Tests $(echo $PWD/build/lib.linux-*)/Tests
|
||||||
cp -a $PWD/selftest.py $PWD/build/%py3_libbuilddir/selftest.py
|
cp -a $PWD/selftest.py $(echo $PWD/build/lib.linux-*)/selftest.py
|
||||||
pushd build/%py3_libbuilddir
|
pushd build/lib.linux-*
|
||||||
PYTHONPATH=$PWD %{__python3} selftest.py
|
PYTHONPATH=$PWD %{__python3} selftest.py
|
||||||
popd
|
popd
|
||||||
export PYTHONPATH=%{buildroot}%{python3_sitearch}
|
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
|
%doc README.md CHANGES.rst
|
||||||
%license docs/COPYING
|
%license docs/COPYING
|
||||||
%{python3_sitearch}/PIL/
|
%{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/_imagingtk*
|
||||||
%exclude %{python3_sitearch}/PIL/ImageTk*
|
%exclude %{python3_sitearch}/PIL/ImageTk*
|
||||||
%exclude %{python3_sitearch}/PIL/SpiderImagePlugin*
|
%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*
|
%{python3_sitearch}/PIL/__pycache__/ImageQt*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Apr 10 2023 yaoxin <yao_xin001@hoperun.com> - 9.5.0-1
|
||||||
- Update to 9.5.0
|
- Update to 9.5.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user