%if 0%{?fedora} > 28 %global with_debug 0 %else %global with_debug 1 %endif %if 0%{?with_debug} %global _find_debuginfo_dwz_opts %{nil} %global _dwz_low_mem_die_limit 0 %else %global debug_package %{nil} %endif # It is only necessary to override %%gobuild to include the buildtags on RHEL 8 and below # or where %%gobuild is otherwise undefined %if ! 0%{?gobuild:1} || (%{defined rhel} && 0%{?rhel} <= 8) %define gobuild(o:) go build -tags="$BUILDTAGS" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**}; %endif %global provider github %global provider_tld com %global project kubernetes-sigs %global repo %{name} %global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} %global import_path %{provider_prefix} Name: cri-tools Version: 1.29.0 Release: 6%{?dist} Summary: CLI and validation tools for Container Runtime Interface License: Apache-2.0 URL: https://%{provider_prefix} Source0: https://%{provider_prefix}/archive/v%{version}/%{name}-%{version}.tar.gz # no ppc64 ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}} # If go_compiler is not set to 1, there is no virtual provide. Use golang instead. BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} BuildRequires: glibc-static BuildRequires: go-md2man BuildRequires: go-rpm-macros Provides: crictl = %{version}-%{release} %description %{summary}. %prep %autosetup -p1 # can be used instead of the GO_LDFLAGS export below # sed -i 's/"unknown"/"%{ version }"/' ./pkg/version/version.go %build %global gomodulesmode GO111MODULE=on # Exporting %%{gomodulesmode} is only necessary on RHEL 8 and below export %{gomodulesmode} export GOFLAGS="-mod=vendor" export BUILDTAGS="selinux seccomp" # the export below fixes the crictl -v unknown version result export GO_LDFLAGS="-X %{import_path}/pkg/version.Version=%{version}" %gobuild -o bin/crictl %{import_path}/cmd/crictl go-md2man -in docs/crictl.md -out docs/crictl.1 %install # install binaries install -dp %{buildroot}%{_bindir} install -p -m 755 ./bin/crictl %{buildroot}%{_bindir} # install manpage install -dp %{buildroot}%{_mandir}/man1 install -p -m 644 docs/crictl.1 %{buildroot}%{_mandir}/man1 %check #define license tag if not already defined %{!?_licensedir:%global license %doc} %files %license LICENSE vendor/modules.txt %doc CHANGELOG.md CONTRIBUTING.md OWNERS README.md RELEASE.md code-of-conduct.md %doc docs/{benchmark.md,roadmap.md,validation.md} %{_bindir}/crictl %{_mandir}/man1/crictl*.1* %changelog * Wed Jul 17 2024 Fedora Release Engineering - 1.29.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Apr 21 2024 Bradley G Smith - 1.29.0-5 - crictl -v now returns the correct version number * Wed Apr 3 2024 Bradley G Smith - 1.29.0-4 - Correct syntax for automated vendored provides. - Implement SPDX identifier * Tue Feb 13 2024 Bradley G Smith - 1.29.0-3 - Adopt go-rpm-macro process for vendored libraries * Sun Feb 11 2024 Maxwell G - 1.29.0-2 - Rebuild for golang 1.22.0 * Thu Jan 25 2024 Bradley G Smith - 1.29.0-1 * Wed Jan 24 2024 Fedora Release Engineering - 1.24.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.24.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 1.24.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1.24.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Maxwell G - 1.24.2-1 - Update to 1.24.2. - Fix FTBFS - Fix incorrect overriding of %%gobuild. - Update to new upstream URL - Handle new go.mod vendoring * Wed Jul 20 2022 Fedora Release Engineering - 1.11.0-9.dev.git19b7255 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering - 1.11.0-8.dev.git19b7255 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.11.0-7.dev.git19b7255 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.11.0-6.dev.git19b7255 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 1.11.0-5.dev.git19b7255 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jul 24 2019 Fedora Release Engineering - 1.11.0-4.dev.git19b7255 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 1.11.0-3.dev.git19b7255 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Jul 25 2018 Lokesh Mandvekar (Bot) - 1.11.0-2.dev.git19b7255 - autobuilt 19b7255 * Tue Jul 17 2018 Lokesh Mandvekar - 1.11.0-1.dev.gitf95ba2f - bump to v1.11.0 - built f95ba2f * Thu Jul 12 2018 Fedora Release Engineering - version.Versionversion.Version-2.git41d6c4a1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jul 12 2018 Lokesh Mandvekar (Bot) - version.Versionversion.Version-1.git41d6c4a1 - bump to version.Version - autobuilt 41d6c4a * Fri Jun 29 2018 Lokesh Mandvekar (Bot) - crictlVersion-3.git3bf77bf - autobuilt 3bf77bf * Wed Jun 27 2018 Lokesh Mandvekar (Bot) - crictlVersion-2.git012eea1 - autobuilt 012eea1 * Tue Jun 19 2018 Lokesh Mandvekar (Bot) - crictlVersion-1.git78ec590 - bump to crictlVersion - autobuilt 78ec590 * Sat Jun 16 2018 Lokesh Mandvekar (Bot) - 1.0.0-26.git9c667f5 - autobuilt 9c667f5 * Fri Jun 15 2018 Lokesh Mandvekar (Bot) - 1.0.0-25.gitc38159e - autobuilt c38159e * Fri Jun 08 2018 Lokesh Mandvekar (Bot) - 1.0.0-24.git9da2549 - autobuilt 9da2549 * Sun May 27 2018 Lokesh Mandvekar (Bot) - 1.0.0-23.giteae53b2 - autobuilt eae53b2 * Fri May 25 2018 Lokesh Mandvekar (Bot) - 1.0.0-22.gitc58160c - autobuilt c58160c * Fri May 18 2018 Lokesh Mandvekar (Bot) - 1.0.0-21.gitb2cb253 - autobuilt b2cb253 * Wed May 09 2018 Lokesh Mandvekar (Bot) - 1.0.0-20.git6ae7b25 - autobuilt 6ae7b25 * Tue May 08 2018 Lokesh Mandvekar (Bot) - 1.0.0-19.gited19775 - autobuilt ed19775 * Fri May 04 2018 Lokesh Mandvekar (Bot) - 1.0.0-18.git585e558 - autobuilt 585e558 * Wed May 02 2018 Lokesh Mandvekar (Bot) - 1.0.0-17.git49847ed - autobuilt commit 49847ed * Fri Apr 27 2018 Lokesh Mandvekar (Bot) - 1.0.0-16.git34ce008 - autobuilt commit 34ce008 * Tue Apr 24 2018 Lokesh Mandvekar (Bot) - 1.0.0-15.git0dca09b - autobuilt commit 0dca09b * Sat Apr 21 2018 Lokesh Mandvekar (Bot) - 1.0.0-14.gitf37a5a1 - autobuilt commit f37a5a1 * Thu Apr 19 2018 Lokesh Mandvekar (Bot) - 1.0.0-13.gitdb53d78 - autobuilt commit db53d78 * Tue Apr 17 2018 Lokesh Mandvekar (Bot) - 1.0.0-12.gitf6ed14e - autobuilt commit f6ed14e * Tue Apr 17 2018 Lokesh Mandvekar (Bot) - 1.0.0-11.gitf6ed14e - autobuilt commit f6ed14e * Mon Apr 16 2018 Lokesh Mandvekar (Bot) - 1.0.0-10.gitf6ed14e - autobuilt commit f6ed14e * Mon Apr 16 2018 Lokesh Mandvekar (Bot) - 1.0.0-9.gitf6ed14e - autobuilt commit f6ed14e * Mon Apr 16 2018 Lokesh Mandvekar (Bot) - 1.0.0-8.gitf6ed14e - autobuilt commit f6ed14e * Mon Apr 16 2018 Lokesh Mandvekar (Bot) - 1.0.0-7.gitf6ed14e - autobuilt commit f6ed14e * Mon Apr 16 2018 Lokesh Mandvekar (Bot) - 1.0.0-6.gitf6ed14e - autobuilt commit f6ed14e * Fri Apr 06 2018 Lokesh Mandvekar - 1.0.0-5.gitf6ed14e - built commit f6ed14e * Mon Mar 26 2018 Lokesh Mandvekar - 1.0.0-4.git207e773 - built commit 207e773 * Mon Mar 26 2018 Lokesh Mandvekar - 1.0.0-3.git653cc8c - disable critest cause PITA to build * Wed Feb 07 2018 Lokesh Mandvekar - 1.0.0-2.alpha.0.git653cc8c - include critest binary * Wed Feb 07 2018 Lokesh Mandvekar - 1.0.0-1.alpha.0.gitf1a58d6 - First package for Fedora