use modern shell completions macros
The shell completions macros are available on all Fedora and EPEL releases. Also, the filesystem package already owns the parent directories, so there's no need to do that here. [skip changelog]
This commit is contained in:
parent
67705010c2
commit
3a8ae5cc66
12
awscli2.spec
12
awscli2.spec
@ -75,9 +75,9 @@ rm -vf %{buildroot}%{_bindir}/{aws_bash_completer,aws_zsh_completer.sh,aws.cmd}
|
||||
|
||||
# install shell completion
|
||||
install -Dpm0644 bin/aws_bash_completer \
|
||||
%{buildroot}%{_datadir}/bash-completion/completions/aws
|
||||
%{buildroot}%{bash_completions_dir}/aws
|
||||
install -Dpm0644 bin/aws_zsh_completer.sh \
|
||||
%{buildroot}%{_datadir}/zsh/site-functions/_awscli
|
||||
%{buildroot}%{zsh_completions_dir}/_awscli
|
||||
|
||||
|
||||
%check
|
||||
@ -95,12 +95,8 @@ export TESTS_REMOVE_REPO_ROOT_FROM_PATH=1 TZ=UTC
|
||||
%doc README.rst
|
||||
%{_bindir}/aws
|
||||
%{_bindir}/aws_completer
|
||||
%dir %{_datadir}/bash-completion
|
||||
%dir %{_datadir}/bash-completion/completions
|
||||
%{_datadir}/bash-completion/completions/aws
|
||||
%dir %{_datadir}/zsh
|
||||
%dir %{_datadir}/zsh/site-functions
|
||||
%{_datadir}/zsh/site-functions/_awscli
|
||||
%{bash_completions_dir}/aws
|
||||
%{zsh_completions_dir}/_awscli
|
||||
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user