Browse Source

python-pillow add python3 support (without docs)

Signed-off-by: basebuilder_pel7x64builder0 <basebuilder@powerel.org>
master
basebuilder_pel7x64builder0 6 years ago
parent
commit
e9e9339b97
  1. 10
      SPECS/python-pillow.spec

10
SPECS/python-pillow.spec

@ -5,7 +5,7 @@ @@ -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 @@ -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 @@ -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 @@ -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 @@ -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…
Cancel
Save