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:
Maxwell G 2022-10-27 13:25:56 -05:00
parent 5f08c7d476
commit c33bf4a3b5
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

View File

@ -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
Name: ansible-core
@ -123,7 +114,7 @@ sed -i -e '1{\@^#!.*@d}' lib/ansible/cli/*.py lib/ansible/modules/hostname.py li
%generate_buildrequires
temp=$(mktemp)
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
# 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
%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