99d2b5
# https://github.com/cri-o/cri-o
99d2b5
%global goipath         github.com/kubernetes-sigs/cri-tools
c8dffd
Version:                1.31.1
99d2b5
d77671
%define gobuild(o:) go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -linkmode=external -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};
d77671
989c93
%bcond_without check
989c93
989c93
989c93
%global forgeurl    https://github.com/kubernetes-sigs/cri-tools
99d2b5
d77671
%global repo cri-tools
d77671
%global import_path sigs.k8s.io/%{repo}
99d2b5
989c93
%gometa -f
989c93
99d2b5
Name: %{repo}
99d2b5
Release: 1%{?dist}
99d2b5
Summary: CLI and validation tools for Container Runtime Interface
99d2b5
License: ASL 2.0
99d2b5
URL:     https://%{goipath}
99d2b5
Source0: %url/archive/v%{version}/%{name}-%{version}.tar.gz
989c93
ExclusiveArch: %{golang_arches}
99d2b5
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
99d2b5
BuildRequires: golang
99d2b5
BuildRequires: glibc-static
99d2b5
BuildRequires: git
989c93
BuildRequires: go-rpm-macros
99d2b5
Provides: crictl = %{version}-%{release}
99d2b5
99d2b5
%description
99d2b5
%{summary}
99d2b5
989c93
%gopkg
989c93
99d2b5
%prep
989c93
%autosetup  -n %{name}-%{version}
99d2b5
99d2b5
%build
d77671
mkdir _build
d77671
pushd _build
d77671
mkdir -p src/sigs.k8s.io
d77671
ln -s ../../../ src/%{import_path}
d77671
popd
d77671
ln -s vendor src
d77671
export GOPATH=$(pwd)/_build:$(pwd)
d77671
export GO111MODULE=off
d77671
export LDFLAGS+=" -X %{import_path}/pkg/version.Version=%version"
d77671
d77671
GOPATH=$GOPATH %gobuild -o bin/crictl %{import_path}/cmd/crictl
d77671
bin/crictl completion > docs/crictl-completions
99d2b5
99d2b5
%install
99d2b5
# install binaries
99d2b5
install -dp %{buildroot}%{_bindir}
99d2b5
install -p -m 755 ./bin/crictl %{buildroot}%{_bindir}
99d2b5
99d2b5
# install manpage
99d2b5
install -dp %{buildroot}%{_mandir}/man1
99d2b5
install -p -m 644 docs/crictl.1 %{buildroot}%{_mandir}/man1
99d2b5
989c93
# install completions
989c93
install -dp %{buildroot}%{_datadir}/bash-completion/completions/
989c93
install -p -m 644 docs/crictl-completions %{buildroot}%{_datadir}/bash-completion/completions/crictl
989c93
989c93
%check
989c93
%gocheck
989c93
989c93
99d2b5
%files
99d2b5
%license LICENSE
99d2b5
%doc CHANGELOG.md CONTRIBUTING.md OWNERS README.md RELEASE.md code-of-conduct.md
99d2b5
%doc docs/{benchmark.md,roadmap.md,validation.md}
99d2b5
%{_bindir}/crictl
99d2b5
%{_mandir}/man1/crictl*
989c93
%{_datadir}/bash-completion/completions/crictl
989c93
99d2b5
99d2b5
%changelog
c8dffd
* Fri Oct 25 2024 Dennis Gilmore <dennis@ausil.us> - 1.31.1-1
c8dffd
- update to 1.31.1
c8dffd
7b2892
* Fri Oct 25 2024 Dennis Gilmore <dennis@ausil.us> - 1.30.1-1
7b2892
- update to 1.30.1
7b2892
da3b02
* Fri Oct 25 2024 Dennis Gilmore <dennis@ausil.us> - 1.29.0-1
da3b02
- update to 1.29.0
da3b02
899686
* Tue Oct 24 2023 Christian Glombek <cglombek@redhat.com> - 1.28.0-1
899686
- Bump to 1.28.0
899686
fb6a22
* Tue Oct 24 2023 Christian Glombek <cglombek@redhat.com> - 1.27.1-1
fb6a22
- Bump to 1.27.1
fb6a22
e71714
* Thu May 25 2023 Christian Glombek <cglombek@redhat.com> - 1.27.0-1
e71714
- Bump to 1.27.0
e71714
99d2b5
* Thu May 25 2023 Christian Glombek <cglombek@redhat.com> - 1.26.1-1
99d2b5
- Bump to 1.26.1
99d2b5
99d2b5
* Wed Jan 04 2023 Peter Hunt~ <pehunt@redhat.com> - 1.26.0-1
99d2b5
- bump to 1.26.0
99d2b5
99d2b5
* Wed Jan 04 2023 Peter Hunt~ <pehunt@redhat.com> - 1.25.0-2
99d2b5
- bump to 1.25.0
99d2b5
99d2b5
* Tue Jun 14 2022 Peter Hunt <pehunt@redhat.com> - 1.24.2-1
99d2b5
- bump to v1.24.2
99d2b5
99d2b5
* Fri Dec 17 2021 Peter Hunt <pehunt@redhat.com> - 1.23.0-1
99d2b5
- bump to v1.23.0
99d2b5
99d2b5
* Thu Nov 11 2021 Peter Hunt <pehunt@redhat.com> - 1.21.0-3
99d2b5
- bump to v1.21.0
99d2b5
99d2b5
* Wed Aug 18 2021 Peter Hunt <pehunt@redhat.com> - 1.20.0-2
99d2b5
- bump to v1.20.0
99d2b5
99d2b5
* Tue Nov 10 14:03:43 EST 2020 Peter Hunt <pehunt@redhat.com> - 1.19.0-1
99d2b5
- bump to v1.19.0
99d2b5
99d2b5
* Thu Jul 09 2020 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.18.0-1
99d2b5
- bump to v1.18.0
99d2b5
99d2b5
* Tue Jan 14 2020 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.17.0-1
99d2b5
- new version
99d2b5
99d2b5
* Tue Nov 05 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.16.1-2
99d2b5
- GO111MODULE=off
99d2b5
99d2b5
* Tue Oct 22 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.16.1-1
99d2b5
- bump to v1.16.1
99d2b5
99d2b5
* Sat Jul 20 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.15.0-1
99d2b5
- bump to v1.15.0
99d2b5
99d2b5
* Sat Jul 20 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.14.0-1
99d2b5
- bump to v1.14.0
99d2b5
99d2b5
* Thu Feb 21 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.13.0-1.gitc06001f
99d2b5
- bump to v1.13.0
99d2b5
99d2b5
* Thu Jan 31 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.12.0-2.gite392824
99d2b5
- built commit e392824
99d2b5
99d2b5
* Wed Oct 31 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.12.0-1.gite4dff19
99d2b5
- bump to v1.12.0
99d2b5
99d2b5
* Mon Sep 17 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.11.1-2.gitedabfb5
99d2b5
- buit commit edabfb5
99d2b5
99d2b5
* Mon Aug 27 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.11.1-1.git404b126
99d2b5
- bump to v1.11.1
99d2b5
99d2b5
* Mon Jul 02 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.0-6.rhaos3.11.git78ec590
99d2b5
- import spec from rhaos3.10
99d2b5
- built release-1.11 commit 78ec590
99d2b5
99d2b5
* Wed May 16 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.0-5.rhaos3.10.git2e22a75
99d2b5
- Resolves: #1572795 - build for all arches
99d2b5
- From: Yaakov Selkowitz <yselkowi@redhat.com>
99d2b5
99d2b5
* Tue May 15 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.0-4.rhaos3.10.git2e22a75
99d2b5
- built commit 2e22a75
99d2b5
- include rhaos version in release tag
99d2b5
99d2b5
* Sun Apr 22 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.0-3.gitf37a5a1
99d2b5
- built commit f37a5a1
99d2b5
- critest doesn't build, skipped for now
99d2b5
99d2b5
* Wed Feb 07 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0.0-2.alpha.0.git653cc8c
99d2b5
- include critest binary
99d2b5
99d2b5
* Wed Feb 07 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0.0-1.alpha.0.gitf1a58d6
99d2b5
- First package for Fedora