python-pillow add python3 support (without docs)
Signed-off-by: basebuilder_pel7x64builder0 <basebuilder@powerel.org>master
parent
cb3b3bbfc2
commit
e9e9339b97
|
@ -5,7 +5,7 @@
|
|||
|
||||
# RHEL-7 doesn't have python 3
|
||||
%if 0%{?rhel} == 7
|
||||
%global with_python3 0
|
||||
%global with_python3 1
|
||||
%else
|
||||
%global with_python3 1
|
||||
%endif
|
||||
|
@ -225,7 +225,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|||
popd
|
||||
|
||||
pushd docs
|
||||
PYTHONPATH=$PWD/.. make html
|
||||
#PYTHONPATH=$PWD/.. make html
|
||||
rm -f _build/html/.buildinfo
|
||||
popd
|
||||
|
||||
|
@ -240,7 +240,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
|||
popd
|
||||
|
||||
pushd docs
|
||||
PYTHONPATH=$PWD/.. make html
|
||||
#PYTHONPATH=$PWD/.. make html
|
||||
rm -f _build/html/.buildinfo
|
||||
popd
|
||||
popd
|
||||
|
@ -318,7 +318,7 @@ 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
|
||||
|
@ -347,7 +347,7 @@ 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
|
||||
|
|
Loading…
Reference in New Issue