ALT repositories
Last updated at Sat, 23 Oct 2021 00:35:50 +0000 | SRPMs: 17615
en ru
SRPMs in branches
hide window
Group :: Other
Source RPM: cri-tools
Raw spec file

%global import_path

%global _unpackaged_files_terminate_build 1

Name: cri-tools
Version: 1.20.0
Release: alt1

Summary: CLI and validation tools for Kubelet Container Runtime Interface (CRI)
License: Apache-2.0
Group: Other

Packager: Mikhail Gordeev <obirvalger at>

Source: %name-%version.tar

BuildRequires: golang
BuildRequires: /usr/bin/go-md2man
# For creating completion

BuildRequires: /proc

CLI and validation tools for Kubelet Container Runtime Interface (CRI).


export BUILDDIR="$PWD/.build"
export IMPORT_PATH="%import_path"
export GOPATH="$BUILDDIR:%go_path"


for doc in docs/*.md; do
go-md2man -in "$doc" -out "${doc%%md}"1
pushd .build/src/%import_path
%golang_build cmd/crictl
go test -buildmode=pie -o $BUILDDIR/bin/critest -c "$PWD"/cmd/critest

$BUILDDIR/bin/crictl completion > crictl-bash-completion

export BUILDDIR="$PWD/.build"


install -Dpm 644 docs/*.1 -t %buildroot/%_man1dir
rm docs/*.1
install -Dpm 644 crictl-bash-completion -T %buildroot/%_datadir/bash-completion/completions/crictl

%doc %_man1dir/*
%doc docs

* Fri Jan 22 2021 Mikhail Gordeev <obirvalger at> 1.20.0-alt1
- new version 1.20.0

* Thu Sep 17 2020 Mikhail Gordeev <obirvalger at> 1.19.0-alt1
- new version 1.19.0

* Thu Aug 30 2018 Mikhail Gordeev <obirvalger at> 1.11.1-alt1
- Initial build for Sisyphus
The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.