diff --git a/azure-cli.changes b/azure-cli.changes index 86e0ee0..7a09de9 100644 --- a/azure-cli.changes +++ b/azure-cli.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Nov 2 15:15:15 UTC 2020 - olaf@aepfle.de + +- Remove trailing .sh suffix from bash-completion to make sure + az is actually recognized as a command with completions + Drop also the string 'completion' from resulting filename + ------------------------------------------------------------------- Tue Oct 13 11:20:30 UTC 2020 - John Paul Adrian Glaubitz diff --git a/azure-cli.spec b/azure-cli.spec index 5c92642..b7a0114 100644 --- a/azure-cli.spec +++ b/azure-cli.spec @@ -384,7 +384,7 @@ python3 setup.py build %define debug_package %{nil} %else python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-lib=%{python3_sitelib} -install -DTm644 %{buildroot}%{_bindir}/az.completion.sh %{buildroot}%{_datadir}/bash-completion/completions/az.completion.sh +install -DTm644 %{buildroot}%{_bindir}/az.completion.sh %{buildroot}%{_datadir}/bash-completion/completions/az %fdupes %{buildroot}%{python3_sitelib} rm -rf %{buildroot}%{python3_sitelib}/azure/cli/command_modules/__init__.* rm -rf %{buildroot}%{python3_sitelib}/azure/cli/command_modules/__pycache__ @@ -400,7 +400,7 @@ rm -rf %{buildroot}%{python3_sitelib}/azure/__pycache__ %doc HISTORY.rst README.rst %license LICENSE.txt %{_bindir}/az -%{_datadir}/bash-completion/completions/az.completion.sh +%{_datadir}/bash-completion/completions/az %exclude /usr/bin/az.bat %exclude /usr/bin/az.completion.sh %{python3_sitelib}/azure/cli