From 3a8ae5cc6638b8e7e2adab987fe2e791f61d0363 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: May 06 2023 16:50:38 +0000 Subject: 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] --- diff --git a/awscli2.spec b/awscli2.spec index e53281a..5322d31 100644 --- a/awscli2.spec +++ b/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