From 04adc100d773502006351b9251d92e4e525d218c Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Sat, 18 Jun 2022 16:41:09 -0500 Subject: [PATCH] Fix an rpmlint error --- ansible-core.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ansible-core.spec b/ansible-core.spec index 5d25639..768379d 100644 --- a/ansible-core.spec +++ b/ansible-core.spec @@ -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 (