diff --git a/ansible-core.spec b/ansible-core.spec index 66eeb14..e190d77 100644 --- a/ansible-core.spec +++ b/ansible-core.spec @@ -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