Accepting request 666021 from home:EGDFree:branches:Virtualization:containers

- Add fish shell completion

OBS-URL: https://build.opensuse.org/request/show/666021
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=282
This commit is contained in:
Aleksa Sarai 2019-01-31 13:39:17 +00:00 committed by Git OBS Bridge
parent c1766786ba
commit 928246d947
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 14 17:18:43 UTC 2019 - Andrey Karepin <egdfree@opensuse.org>
- Add fish shell completion
-------------------------------------------------------------------
Fri Jan 11 09:57:32 UTC 2019 - Sascha Grunert <sgrunert@suse.com>

View File

@ -95,6 +95,7 @@ BuildRequires: audit
BuildRequires: bash-completion
BuildRequires: ca-certificates
BuildRequires: device-mapper-devel >= 1.2.68
BuildRequires: fish
BuildRequires: glibc-devel-static
BuildRequires: libapparmor-devel
BuildRequires: libbtrfs-devel >= 3.8
@ -215,6 +216,16 @@ Provides: %{realname}-zsh-completion = %{version}
%description zsh-completion
Zsh command line completion support for %{name}.
%package fish-completion
Summary: Fish Completion for %{name}
Group: System/Management
Requires: %{name} = %{version}
Supplements: packageand(%{name}:fish-completion)
BuildArch: noarch
%description fish-completion
Fish command line completion support for %{name}.
%package test
%global __requires_exclude ^libgo.so.*$
Summary: Test package for docker
@ -368,6 +379,7 @@ install -Dd -m 0755 \
install -D -m0644 components/cli/contrib/completion/bash/docker "%{buildroot}%{_sysconfdir}/bash_completion.d/%{realname}"
install -D -m0644 components/cli/contrib/completion/zsh/_docker "%{buildroot}%{_sysconfdir}/zsh_completion.d/%{realname}"
install -D -m0644 components/cli/contrib/completion/fish/docker.fish "%{buildroot}%{_datadir}/fish/completions/%{realname}.fish"
# copy all for the test package
install -d %{buildroot}%{_prefix}/src/docker/
cp -a components/engine/. %{buildroot}%{_prefix}/src/docker/engine
@ -468,6 +480,10 @@ getent group docker >/dev/null || groupadd -r docker
%defattr(-,root,root)
%config %{_sysconfdir}/zsh_completion.d/%{realname}
%files fish-completion
%defattr(-,root,root)
%config %{_datadir}/fish/completions/%{realname}.fish
%files test
%defattr(-,root,root)
%{_prefix}/src/docker/