Fix env-script-interpreter rpmlint errors
This commit is contained in:
parent
e03a7fb20b
commit
42d617cd57
@ -147,6 +147,16 @@ make PYTHON=%{python3} docs
|
|||||||
%pyproject_install
|
%pyproject_install
|
||||||
%pyproject_save_files ansible ansible_test
|
%pyproject_save_files ansible ansible_test
|
||||||
|
|
||||||
|
# These files are executable when they shouldn't be.
|
||||||
|
# Only the actual "binaries" in %%{_bindir} need to be executable
|
||||||
|
# and have shebangs.
|
||||||
|
while read -r file; do
|
||||||
|
sed -i -e '1{\@^#!.*@d}' "${file}"
|
||||||
|
done < <(find \
|
||||||
|
%{buildroot}%{python3_sitelib}/ansible/cli/*.py \
|
||||||
|
%{buildroot}%{python3_sitelib}/ansible/cli/scripts/ansible_connection_cli_stub.py \
|
||||||
|
-type f ! -executable)
|
||||||
|
|
||||||
install -Dpm 0644 bash_completions/* -t %{buildroot}%{bash_completions_dir}
|
install -Dpm 0644 bash_completions/* -t %{buildroot}%{bash_completions_dir}
|
||||||
install -Dpm 0644 fish_completions/* -t %{buildroot}%{fish_completions_dir}
|
install -Dpm 0644 fish_completions/* -t %{buildroot}%{fish_completions_dir}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user