|
|
|
@ -39,12 +39,14 @@ Source0: https://github.com/python-imaging/Pillow/tarball/%{commit}/pytho
|
|
|
|
|
|
|
|
|
|
# Add s390* and ppc* archs
|
|
|
|
|
Patch0: python-pillow-archs.patch
|
|
|
|
|
# Fix overly-strict test
|
|
|
|
|
Patch1: python-pillow_test-webp.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
BuildRequires: tkinter
|
|
|
|
|
BuildRequires: tk-devel
|
|
|
|
|
BuildRequires: python-sphinx
|
|
|
|
|
# BuildRequires: python-sphinx
|
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
BuildRequires: freetype-devel
|
|
|
|
@ -63,7 +65,7 @@ BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-tkinter
|
|
|
|
|
BuildRequires: python3-PyQt4
|
|
|
|
|
BuildRequires: python3-numpy
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
# BuildRequires: python3-sphinx
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Provides: python-imaging = %{version}-%{release}
|
|
|
|
@ -206,6 +208,7 @@ PIL image wrapper for Qt.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n python-imaging-Pillow-%{shortcommit}
|
|
|
|
|
%patch0 -p1 -b .archs
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
|
|
%if %{with_python3}
|
|
|
|
|
# Create Python 3 source tree
|
|
|
|
@ -224,7 +227,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
pushd docs
|
|
|
|
|
PYTHONPATH=$PWD/../build/%py2_libbuilddir make html
|
|
|
|
|
# PYTHONPATH=$PWD/../build/%%py2_libbuilddir make html
|
|
|
|
|
rm -f _build/html/.buildinfo
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
@ -239,7 +242,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
pushd docs
|
|
|
|
|
PYTHONPATH=$PWD/../build/%py3_libbuilddir make html SPHINXBUILD=sphinx-build-%python3_version
|
|
|
|
|
# PYTHONPATH=$PWD/../build/%%py3_libbuilddir make html SPHINXBUILD=sphinx-build-%%python3_version
|
|
|
|
|
rm -f _build/html/.buildinfo
|
|
|
|
|
popd
|
|
|
|
|
popd
|
|
|
|
@ -311,7 +314,8 @@ popd
|
|
|
|
|
%{py2_incdir}/Imaging/
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc Scripts Images docs/_build/html
|
|
|
|
|
%doc Scripts Images
|
|
|
|
|
# docs/_build/html
|
|
|
|
|
|
|
|
|
|
%files sane
|
|
|
|
|
%doc Sane/CHANGES Sane/demo*.py Sane/sanedoc.txt
|
|
|
|
@ -340,7 +344,8 @@ popd
|
|
|
|
|
%{py3_incdir}/Imaging/
|
|
|
|
|
|
|
|
|
|
%files -n %{name3}-doc
|
|
|
|
|
%doc Scripts Images docs/_build/html
|
|
|
|
|
%doc Scripts Images
|
|
|
|
|
# docs/_build/html
|
|
|
|
|
|
|
|
|
|
%files -n %{name3}-sane
|
|
|
|
|
%doc Sane/CHANGES Sane/demo*.py Sane/sanedoc.txt
|
|
|
|
@ -359,6 +364,7 @@ popd
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jan 02 2014 Sandro Mani <manisandro@gmail.com> - 2.3.0-1
|
|
|
|
|
- Update to 2.3.0
|
|
|
|
|
- Build with doc disabled to break circular python-pillow -> python-sphinx -> python pillow dependency
|
|
|
|
|
|
|
|
|
|
* Wed Oct 23 2013 Sandro Mani <manisandro@gmail.com> - 2.2.1-2
|
|
|
|
|
- Backport fix for decoding tiffs with correct byteorder, fixes rhbz#1019656
|
|
|
|
|