Don’t assume %_smp_mflags is -j%_smp_build_ncpus

This commit is contained in:
Benjamin A. Beasley 2023-03-18 11:31:43 -04:00
parent f9bf9e7a5d
commit c217bc6159

View File

@ -93,7 +93,8 @@ sed -r \
# are some warnings. We want to build the documentation as best we can anyway. # are some warnings. We want to build the documentation as best we can anyway.
# Additionally, we parallelize sphinx-build. # Additionally, we parallelize sphinx-build.
%if %{with doc_pdf} %if %{with doc_pdf}
PYTHONPATH="${PWD}" %make_build -C docs latex SPHINXOPTS='-n %{?_smp_mflags}' PYTHONPATH="${PWD}" %make_build -C docs latex \
SPHINXOPTS='-n -j%{?_smp_build_ncpus}'
%make_build -C docs/build/latex LATEXMKOPTS='-quiet' %make_build -C docs/build/latex LATEXMKOPTS='-quiet'
%endif %endif