From 928246d9474eac1c8a04cbd3c045d6c2014ecb129b3a64e26a73d36abca2b977 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Thu, 31 Jan 2019 13:39:17 +0000 Subject: [PATCH] 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 --- docker.changes | 5 +++++ docker.spec | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/docker.changes b/docker.changes index bb05463..e0342ab 100644 --- a/docker.changes +++ b/docker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 14 17:18:43 UTC 2019 - Andrey Karepin + +- Add fish shell completion + ------------------------------------------------------------------- Fri Jan 11 09:57:32 UTC 2019 - Sascha Grunert diff --git a/docker.spec b/docker.spec index 1528765..df43784 100644 --- a/docker.spec +++ b/docker.spec @@ -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/