From a1c0591fbe7b7fec97514f507e84ae6fb8d5b6cc Mon Sep 17 00:00:00 2001 From: Raphael Groner Date: May 20 2019 20:23:24 +0000 Subject: fix sphinx options --- diff --git a/python-vpoller.spec b/python-vpoller.spec index 1d613aa..0d5115e 100644 --- a/python-vpoller.spec +++ b/python-vpoller.spec @@ -81,7 +81,12 @@ This pacakge installs several documentation files. %build %py3_build -PYTHONPATH=../src SPHINXBUILD=sphinx-build-%{python3_version} SPHINXOPTS=%{_smp_mflags} %make_build -C docs html +export PYTHONPATH=../src +sed -i -r \ + -e 's:(SPHINXBUILD.*=).*:\1 %{_bindir}/sphinx-build-%{python3_version}:' \ + -e 's:SPHINXOPTS.*=:\0 %{_smp_mflags} :' \ + docs/Makefile +%make_build -C docs html rm -rf docs/_build/html/.{doctrees,buildinfo} # wrong-script-interpreter grep -rl "/usr/bin/env" | xargs chmod 0644 @@ -118,7 +123,7 @@ popd %changelog * Sun May 19 2019 Raphael Groner - 0.7.3-3 -- use concrete python3 version for sphinx +- use concrete python3 version and path for sphinx-build * Sun Apr 14 2019 Raphael Groner - 0.7.3-2 - split subpackages for doc and bin