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 @@


# RHEL-7 doesn't have python 3 # RHEL-7 doesn't have python 3
%if 0%{?rhel} == 7 %if 0%{?rhel} == 7
%global with_python3 0 %global with_python3 1
%else %else
%global with_python3 1 %global with_python3 1
%endif %endif
@ -225,7 +225,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
popd popd


pushd docs pushd docs
PYTHONPATH=$PWD/.. make html #PYTHONPATH=$PWD/.. make html
rm -f _build/html/.buildinfo rm -f _build/html/.buildinfo
popd popd


@ -240,7 +240,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
popd popd


pushd docs pushd docs
PYTHONPATH=$PWD/.. make html #PYTHONPATH=$PWD/.. make html
rm -f _build/html/.buildinfo rm -f _build/html/.buildinfo
popd popd
popd popd
@ -318,7 +318,7 @@ popd
%{py2_incdir}/Imaging/ %{py2_incdir}/Imaging/


%files doc %files doc
%doc Scripts Images docs/_build/html #%doc Scripts Images docs/_build/html


%files sane %files sane
%doc Sane/CHANGES Sane/demo*.py Sane/sanedoc.txt %doc Sane/CHANGES Sane/demo*.py Sane/sanedoc.txt
@ -347,7 +347,7 @@ popd
%{py3_incdir}/Imaging/ %{py3_incdir}/Imaging/


%files -n %{name3}-doc %files -n %{name3}-doc
%doc Scripts Images docs/_build/html #%doc Scripts Images docs/_build/html


%files -n %{name3}-sane %files -n %{name3}-sane
%doc Sane/CHANGES Sane/demo*.py Sane/sanedoc.txt %doc Sane/CHANGES Sane/demo*.py Sane/sanedoc.txt

Loading…
Cancel
Save