SHA256
1
0
forked from pool/docker

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
This commit is contained in:
Aleksa Sarai 2020-12-17 00:50:20 +00:00 committed by Git OBS Bridge
parent 0c67f144ec
commit 3bcb84b9b5
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 14 13:45:56 UTC 2020 - Robert Munteanu <rombert@apache.org>
- Enable fish-completion
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Nov 12 18:36:26 UTC 2020 - Michał Rostecki <mrostecki@suse.com> Thu Nov 12 18:36:26 UTC 2020 - Michał Rostecki <mrostecki@suse.com>

View File

@ -100,6 +100,7 @@ BuildRequires: libtool
BuildRequires: procps BuildRequires: procps
BuildRequires: sqlite3-devel BuildRequires: sqlite3-devel
BuildRequires: zsh BuildRequires: zsh
BuildRequires: fish
BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(libsystemd)
Requires: apparmor-parser Requires: apparmor-parser
Requires: ca-certificates-mozilla Requires: ca-certificates-mozilla
@ -216,6 +217,16 @@ Provides: %{realname}-zsh-completion = %{version}
%description zsh-completion %description zsh-completion
Zsh command line completion support for %{name}. 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 %package test
%global __requires_exclude ^libgo.so.*$ %global __requires_exclude ^libgo.so.*$
Summary: Test package for docker 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/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/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 # systemd service
@ -500,6 +512,10 @@ grep -q '^dockremap:' /etc/subgid || \
%defattr(-,root,root) %defattr(-,root,root)
%{_sysconfdir}/zsh_completion.d/_%{realname} %{_sysconfdir}/zsh_completion.d/_%{realname}
%files fish-completion
%defattr(-,root,root)
%{_datadir}/fish/vendor_completions.d/%{realname}.fish
%files test %files test
%defattr(-,root,root) %defattr(-,root,root)
%{_prefix}/src/docker/ %{_prefix}/src/docker/