99d2b5
# https://github.com/cri-o/cri-o
99d2b5
%global goipath         github.com/kubernetes-sigs/cri-tools
7b2892
Version:                1.30.1
99d2b5
99d2b5
%if 0%{?rhel} && 0%{?rhel} <= 8
99d2b5
%define gobuild(o:) %{expand:
99d2b5
  # https://bugzilla.redhat.com/show_bug.cgi?id=995136#c12
99d2b5
  %global _dwz_low_mem_die_limit 0
99d2b5
  %ifnarch ppc64
99d2b5
  go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-}%{?currentgoldflags} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags %{?__golang_extldflags}' -compressdwarf=false" -a -v -x %{?**};
99d2b5
  %else
99d2b5
  go build                -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-}%{?currentgoldflags} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags %{?__golang_extldflags}' -compressdwarf=false" -a -v -x %{?**};
99d2b5
  %endif
99d2b5
}
99d2b5
%bcond_with check
99d2b5
%else
99d2b5
%gometa
99d2b5
%bcond_without check
99d2b5
%endif
99d2b5
99d2b5
%global built_tag v%{version}
99d2b5
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
99d2b5
# no ppc64
99d2b5
ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm} ppc64le s390x}
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
99d2b5
BuildRequires: go-md2man
99d2b5
Provides: crictl = %{version}-%{release}
99d2b5
99d2b5
%description
99d2b5
%{summary}
99d2b5
99d2b5
%prep
99d2b5
%if 0%{?rhel} && 0%{?rhel} <= 8
99d2b5
%autosetup -p1 -n %{name}-%{version}
99d2b5
%else
99d2b5
%goprep -k
99d2b5
%endif
99d2b5
99d2b5
%build
99d2b5
%gobuild -o bin/crictl %{goipath}/cmd/crictl
99d2b5
go-md2man -in docs/crictl.md -out docs/crictl.1
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
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*
99d2b5
99d2b5
%changelog
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