Dominique Leuenberger 2020-11-03 14:16:26 +00:00 committed by Git OBS Bridge
commit 373f5b6534
2 changed files with 9 additions and 2 deletions

View File

@ -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 <adrian.glaubitz@suse.com>

View File

@ -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