Fix an rpmlint error
This commit is contained in:
parent
ae17667064
commit
04adc100d7
@ -80,8 +80,8 @@ Conflicts: ansible <= 2.9.99
|
||||
Provides: ansible-base = %{version}-%{release}
|
||||
Obsoletes: ansible-base < 2.10.6-1
|
||||
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: make
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
# Needed to build manpages from source.
|
||||
BuildRequires: python%{python3_pkgversion}-straight-plugin
|
||||
BuildRequires: python%{python3_pkgversion}-docutils
|
||||
@ -128,8 +128,9 @@ This package installs extensive documentation for ansible-core
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
find -name '.git_keep' -delete
|
||||
sed -i -s 's|/usr/bin/env python|%{python3}|' test/lib/ansible_test/_util/target/cli/ansible_test_cli_stub.py bin/* lib/ansible/cli/*.py
|
||||
find \( -name '.git_keep' -o -name '.rstcheck.cfg' \) -delete
|
||||
sed -i -s 's|/usr/bin/env python|%{python3}|' test/lib/ansible_test/_util/target/cli/ansible_test_cli_stub.py bin/*
|
||||
sed -i -e '1{\@^#!.*@d}' lib/ansible/cli/*.py lib/ansible/modules/hostname.py lib/ansible/cli/scripts/ansible_connection_cli_stub.py
|
||||
|
||||
%generate_buildrequires
|
||||
temp=$(mktemp)
|
||||
@ -147,10 +148,10 @@ make PYTHON=%{python3} docs
|
||||
%pyproject_wheel
|
||||
|
||||
%if %{with docs}
|
||||
make PYTHON=%{python3} SPHINXBUILD=sphinx-build-3 webdocs
|
||||
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
|
||||
# make PYTHON=%%{python3} -Cdocs/docsite config cli keywords modules plugins testing
|
||||
%endif
|
||||
|
||||
(
|
||||
|
Loading…
Reference in New Issue
Block a user