From c11412beea7bc8c3958ed7c08991bcfef57063e70462cb796690e76f4bda1b88 Mon Sep 17 00:00:00 2001 From: Tim Hardeck Date: Tue, 21 Mar 2017 14:24:32 +0000 Subject: [PATCH] - install and enable bash completion OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cf-cli?expand=0&rev=8 --- cf-cli.changes | 5 +++++ cf-cli.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/cf-cli.changes b/cf-cli.changes index d1397fb..61c5694 100644 --- a/cf-cli.changes +++ b/cf-cli.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 21 14:23:27 UTC 2017 - thardeck@suse.com + +- install and enable bash completion + ------------------------------------------------------------------- Fri Mar 3 15:12:42 UTC 2017 - thardeck@suse.com diff --git a/cf-cli.spec b/cf-cli.spec index 710f1ab..de98a60 100644 --- a/cf-cli.spec +++ b/cf-cli.spec @@ -46,6 +46,8 @@ grep -rl "0.0.0-unknown-version" ./ | xargs sed -i 's/0.0.0-unknown-version/%{ve %gobuild %install +install -m 755 -d %{buildroot}/%{_sysconfdir}/bash_completion.d +cp ci/installers/completion/cf %{buildroot}/%{_sysconfdir}/bash_completion.d/cf mkdir -p %{buildroot}/usr/bin cp ../go/bin/cli %{buildroot}/usr/bin/cf cp %{SOURCE1} ./ @@ -53,6 +55,7 @@ cp %{SOURCE1} ./ %files /usr/bin/cf %defattr(-,root,root,-) +%config %{_sysconfdir}/bash_completion.d/cf %doc CHANGELOG.md LICENSE NOTICE README %changelog