SHA256
1
0
forked from pool/helmfile

Accepting request 850302 from home:manfred-h:Cubic

- Add bash and zsh completion sub-packages

OBS-URL: https://build.opensuse.org/request/show/850302
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/helmfile?expand=0&rev=29
This commit is contained in:
Manfred Hollstein 2020-11-23 19:01:13 +00:00 committed by Git OBS Bridge
parent 92880c9482
commit b34c067e23
2 changed files with 41 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 23 10:17:01 UTC 2020 - Manfred Hollstein <manfred.h@gmx.net>
- Add bash and zsh completion sub-packages
-------------------------------------------------------------------
Thu Nov 19 09:42:48 UTC 2020 - Manfred Hollstein <manfred.h@gmx.net>

View File

@ -43,6 +43,26 @@ Helmfile is a declarative spec for deploying helm charts. It lets you...
To avoid upgrades for each iteration of helm, the helmfile executable
delegates to helm - as a result, helm must be installed.
%package bash-completion
Summary: Bash Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: packageand(%{name}:bash-completion)
BuildArch: noarch
%description bash-completion
Bash command line completion support for %{name}.
%package zsh-completion
Summary: Zsh Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: packageand(%{name}:zsh)
BuildArch: noarch
%description zsh-completion
Zsh command line completion support for %{name}.
%prep
%setup -qa1
@ -53,10 +73,26 @@ go build -mod=vendor -buildmode=pie
make TAG=v%{version} install
mkdir -p %{buildroot}%{_bindir}
install -m755 ${HOME}/go/bin/helmfile %{buildroot}/%{_bindir}/helmfile
mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions
install -m644 autocomplete/helmfile_bash_autocomplete \
%{buildroot}%{_datarootdir}/bash-completion/completions/%{name}
mkdir -p %{buildroot}%{_datarootdir}/zsh_completion.d
install -m644 autocomplete/helmfile_zsh_autocomplete \
%{buildroot}%{_datarootdir}/zsh_completion.d/_%{name}
%files
%doc README.md
%license LICENSE
%{_bindir}/helmfile
%files bash-completion
%defattr(-,root,root)
%dir %{_datarootdir}/bash-completion/completions/
%{_datarootdir}/bash-completion/completions/%{name}
%files zsh-completion
%defattr(-,root,root)
%dir %{_datarootdir}/zsh_completion.d/
%{_datarootdir}/zsh_completion.d/_%{name}
%changelog