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:
parent
c1766786ba
commit
928246d947
@ -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>
|
Fri Jan 11 09:57:32 UTC 2019 - Sascha Grunert <sgrunert@suse.com>
|
||||||
|
|
||||||
|
16
docker.spec
16
docker.spec
@ -95,6 +95,7 @@ BuildRequires: audit
|
|||||||
BuildRequires: bash-completion
|
BuildRequires: bash-completion
|
||||||
BuildRequires: ca-certificates
|
BuildRequires: ca-certificates
|
||||||
BuildRequires: device-mapper-devel >= 1.2.68
|
BuildRequires: device-mapper-devel >= 1.2.68
|
||||||
|
BuildRequires: fish
|
||||||
BuildRequires: glibc-devel-static
|
BuildRequires: glibc-devel-static
|
||||||
BuildRequires: libapparmor-devel
|
BuildRequires: libapparmor-devel
|
||||||
BuildRequires: libbtrfs-devel >= 3.8
|
BuildRequires: libbtrfs-devel >= 3.8
|
||||||
@ -215,6 +216,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/Management
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
Supplements: packageand(%{name}:fish-completion)
|
||||||
|
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
|
||||||
@ -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/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/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
|
# copy all for the test package
|
||||||
install -d %{buildroot}%{_prefix}/src/docker/
|
install -d %{buildroot}%{_prefix}/src/docker/
|
||||||
cp -a components/engine/. %{buildroot}%{_prefix}/src/docker/engine
|
cp -a components/engine/. %{buildroot}%{_prefix}/src/docker/engine
|
||||||
@ -468,6 +480,10 @@ getent group docker >/dev/null || groupadd -r docker
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config %{_sysconfdir}/zsh_completion.d/%{realname}
|
%config %{_sysconfdir}/zsh_completion.d/%{realname}
|
||||||
|
|
||||||
|
%files fish-completion
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%config %{_datadir}/fish/completions/%{realname}.fish
|
||||||
|
|
||||||
%files test
|
%files test
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/src/docker/
|
%{_prefix}/src/docker/
|
||||||
|
Loading…
Reference in New Issue
Block a user