From 3bcb84b9b5df81ef21c58eb33dcbd48648155dd1cc0b602fdadb256817208754 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Thu, 17 Dec 2020 00:50:20 +0000 Subject: [PATCH] Accepting request 855760 from home:robert_munteanu:branches:Virtualization:containers Enable fish-completion OBS-URL: https://build.opensuse.org/request/show/855760 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=347 --- docker.changes | 5 +++++ docker.spec | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/docker.changes b/docker.changes index c05d356..b625757 100644 --- a/docker.changes +++ b/docker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 14 13:45:56 UTC 2020 - Robert Munteanu + +- Enable fish-completion + ------------------------------------------------------------------- Thu Nov 12 18:36:26 UTC 2020 - MichaƂ Rostecki diff --git a/docker.spec b/docker.spec index 2cada94..86e04a0 100644 --- a/docker.spec +++ b/docker.spec @@ -100,6 +100,7 @@ BuildRequires: libtool BuildRequires: procps BuildRequires: sqlite3-devel BuildRequires: zsh +BuildRequires: fish BuildRequires: pkgconfig(libsystemd) Requires: apparmor-parser Requires: ca-certificates-mozilla @@ -216,6 +217,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/Shells +Requires: %{name} = %{version} +Supplements: packageand(%{name}:fish) +BuildArch: noarch + +%description fish-completion +Fish command line completion support for %{name}. + %package test %global __requires_exclude ^libgo.so.*$ Summary: Test package for docker @@ -372,6 +383,7 @@ install -Dd -m 0755 \ install -D -m0644 components/cli/contrib/completion/bash/docker "%{buildroot}%{_datarootdir}/bash-completion/completions/%{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/vendor_completions.d/%{realname}.fish" # # systemd service @@ -500,6 +512,10 @@ grep -q '^dockremap:' /etc/subgid || \ %defattr(-,root,root) %{_sysconfdir}/zsh_completion.d/_%{realname} +%files fish-completion +%defattr(-,root,root) +%{_datadir}/fish/vendor_completions.d/%{realname}.fish + %files test %defattr(-,root,root) %{_prefix}/src/docker/