Remove docs conditional
There are no plans to build the docs at this time, and the commented out commands are out of date.
This commit is contained in:
parent
5f08c7d476
commit
c33bf4a3b5
@ -1,12 +1,3 @@
|
|||||||
#
|
|
||||||
# If we should enable docs building
|
|
||||||
# Currently we cannot until we get a stack of needed packages added and a few bugs fixed
|
|
||||||
#
|
|
||||||
%bcond_with docs
|
|
||||||
|
|
||||||
#
|
|
||||||
# If we should enable tests by default
|
|
||||||
#
|
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
|
|
||||||
Name: ansible-core
|
Name: ansible-core
|
||||||
@ -123,7 +114,7 @@ sed -i -e '1{\@^#!.*@d}' lib/ansible/cli/*.py lib/ansible/modules/hostname.py li
|
|||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
temp=$(mktemp)
|
temp=$(mktemp)
|
||||||
sed '/^mock$/d' test/lib/ansible_test/_data/requirements/units.txt > ${temp}
|
sed '/^mock$/d' test/lib/ansible_test/_data/requirements/units.txt > ${temp}
|
||||||
%pyproject_buildrequires %{?with_tests:${temp} test/units/requirements.txt} %{?with_docs:docs/docsite/requirements.txt}
|
%pyproject_buildrequires %{?with_tests:${temp} test/units/requirements.txt}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# disable the python -s shbang flag as we want to be able to find non system modules
|
# disable the python -s shbang flag as we want to be able to find non system modules
|
||||||
@ -135,12 +126,6 @@ make PYTHON=%{python3} docs
|
|||||||
|
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
%if %{with docs}
|
|
||||||
make PYTHON=%%{python3} SPHINXBUILD=sphinx-build-3 webdocs
|
|
||||||
%else
|
|
||||||
# we still need things to build these minimal docs too.
|
|
||||||
# make PYTHON=%%{python3} -Cdocs/docsite config cli keywords modules plugins testing
|
|
||||||
%endif
|
|
||||||
|
|
||||||
(
|
(
|
||||||
cd bin
|
cd bin
|
||||||
|
Loading…
Reference in New Issue
Block a user