SHA256
1
0
forked from pool/cri-tools

Accepting request 628890 from home:vrothberg:branches:devel:kubic

- Generate and install bash completion for crictl.
- Provide /etc/crictl.yaml config.
  bsc#1104598

OBS-URL: https://build.opensuse.org/request/show/628890
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/cri-tools?expand=0&rev=2
This commit is contained in:
Richard Brown
2018-08-13 09:13:11 +00:00
committed by Git OBS Bridge
parent 9d31e5682b
commit c03e9e2eb1
3 changed files with 15 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ License: Apache-2.0
Group: System/Management
Url: https://github.com/kubernetes-incubator/cri-tools
Source0: %{name}-%{version}.tar.xz
Source1: crictl.yaml
BuildRequires: go-go-md2man
BuildRequires: golang-packaging
BuildRequires: golang(API) >= 1.9
@@ -62,6 +63,9 @@ do
done
rename '.md' '.1' docs/*
# generate bash-completion
./bin/crictl completion > crictl-completion
%install
cd $HOME/go/src/%{project}
install -D -m 0755 bin/crictl %{buildroot}/%{_bindir}/crictl
@@ -70,11 +74,13 @@ install -d %{buildroot}/%{_mandir}/man1
install -D -m 0644 docs/crictl.1 %{buildroot}/%{_mandir}/man1/crictl.1
install -D -m 0644 docs/benchmark.1 %{buildroot}/%{_mandir}/man1/critest-benchmark.1
install -D -m 0644 docs/validation.1 %{buildroot}/%{_mandir}/man1/critest-validation.1
install -D -m 0644 crictl-completion %{buildroot}/%{_datadir}/bash-completion/completions/crictl
%files
%{_bindir}/crictl
%{_bindir}/critest
%{_mandir}/man1/*
%{_datadir}/bash-completion/completions/crictl
%license LICENSE
%changelog