There is no bootstrap

This commit is contained in:
Miro Hrončok 2022-01-27 23:53:41 +01:00
parent 1edf00e291
commit e3e5ca0412
1 changed files with 6 additions and 7 deletions

View File

@ -2,12 +2,11 @@
%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 srcname pillow
# bootstrap building docs (pillow is required by docutils, docutils are
# required by sphinx; pillow build-requires sphinx)
# EPEL9 is missing some dependencies to build the documentation
%if 0%{?el9}
%bcond_without bootstrap
%bcond_with doc
%else
%bcond_with bootstrap
%bcond_without doc
%endif
Name: python-%{srcname}
@ -45,7 +44,7 @@ BuildRequires: python%{python3_pkgversion}-olefile
BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-qt5
BuildRequires: python%{python3_pkgversion}-setuptools
%if %{without bootstrap}
%if %{with doc}
BuildRequires: make
BuildRequires: python%{python3_pkgversion}-sphinx
BuildRequires: python%{python3_pkgversion}-sphinx-copybutton
@ -138,7 +137,7 @@ Qt %{srcname} image wrapper.
# Build Python 3 modules
%py3_build
%if %{without bootstrap}
%if %{with doc}
PYTHONPATH=$PWD/build/%py3_libbuilddir make -C docs html BUILDDIR=_build_py3 SPHINXBUILD=sphinx-build-%python3_version
rm -f docs/_build_py3/html/.buildinfo
%endif
@ -183,7 +182,7 @@ popd
%files -n python%{python3_pkgversion}-%{srcname}-devel
%{py3_incdir}/Imaging/
%if %{without bootstrap}
%if %{with doc}
%files -n python%{python3_pkgversion}-%{srcname}-doc
%doc docs/_build_py3/html
%endif