Accepting request 1120790 from home:manfred-h:devel:kubic
- autocomplete files can be generate using "helmfile complete" for the shells "bash", "zsh" and "fish". Use this feature to provide additional helmfile-<shell>-completion packages again. OBS-URL: https://build.opensuse.org/request/show/1120790 OBS-URL: https://build.opensuse.org/package/show/devel:kubic/helmfile?expand=0&rev=92
This commit is contained in:
parent
ba393f983c
commit
908e0155a3
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 27 11:44:03 UTC 2023 - Manfred Hollstein <manfred.h@gmx.net>
|
||||
|
||||
- autocomplete files can be generate using "helmfile complete" for
|
||||
the shells "bash", "zsh" and "fish". Use this feature to provide
|
||||
additional helmfile-<shell>-completion packages again.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 24 12:05:38 UTC 2023 - Manfred Hollstein <manfred.h@gmx.net>
|
||||
|
||||
|
@ -45,6 +45,36 @@ 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: (%{name} and 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: (%{name} and zsh)
|
||||
BuildArch: noarch
|
||||
|
||||
%description zsh-completion
|
||||
Zsh command line completion support for %{name}.
|
||||
|
||||
%package fish-completion
|
||||
Summary: Fish Completion for %{name}
|
||||
Group: System/Shells
|
||||
Requires: %{name} = %{version}
|
||||
Supplements: (%{name} and fish)
|
||||
BuildArch: noarch
|
||||
|
||||
%description fish-completion
|
||||
Fish command line completion support for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -qa1
|
||||
|
||||
@ -62,10 +92,29 @@ export SOURCE_DATE_EPOCH
|
||||
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
|
||||
%{buildroot}/%{_bindir}/helmfile completion bash > %{buildroot}%{_datarootdir}/bash-completion/completions/%{name}
|
||||
mkdir -p %{buildroot}%{_datarootdir}/zsh_completion.d
|
||||
%{buildroot}/%{_bindir}/helmfile completion zsh > %{buildroot}%{_datarootdir}/zsh_completion.d/_%{name}
|
||||
mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d
|
||||
%{buildroot}/%{_bindir}/helmfile completion fish > %{buildroot}%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_bindir}/helmfile
|
||||
|
||||
%files bash-completion
|
||||
%dir %{_datarootdir}/bash-completion/completions/
|
||||
%{_datarootdir}/bash-completion/completions/%{name}
|
||||
|
||||
%files zsh-completion
|
||||
%dir %{_datarootdir}/zsh_completion.d/
|
||||
%{_datarootdir}/zsh_completion.d/_%{name}
|
||||
|
||||
%files fish-completion
|
||||
%dir %{_datarootdir}/fish
|
||||
%dir %{_datarootdir}/fish/vendor_completions.d
|
||||
%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user