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