# Generated by go2rpm 1.8.2 %bcond_without check %bcond_without bootstrap %if %{with bootstrap} %global debug_package %{nil} %endif # https://github.com/kubernetes/apiextensions-apiserver %global goipath k8s.io/apiextensions-apiserver %global forgeurl https://github.com/kubernetes/apiextensions-apiserver Version: 1.26.0~rc.0 %global tag kubernetes-1.26.0-rc.0 %global distprefix %{nil} %gometa %global common_description %{expand: API server for API extensions like CustomResourceDefinitions.} %global golicenses LICENSE %global godocs examples code-of-conduct.md CONTRIBUTING.md README.md %global gosupfiles "${examples[@]}" Name: %{goname} Release: %autorelease Summary: API server for API extensions like CustomResourceDefinitions License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %if %{without bootstrap} %build %gobuild -o %{gobuilddir}/bin/apiextensions-apiserver %{goipath} %endif %install mapfile -t examples <<< $(find examples -type f) %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %endif %if %{without bootstrap} %if %{with check} %check for test in "TestCostEstimation" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done # test/integration: needs network %gocheck -t test/integration %endif %endif %if %{without bootstrap} %files %license LICENSE %doc examples code-of-conduct.md CONTRIBUTING.md README.md %{_bindir}/* %endif %gopkgfiles %changelog %autochangelog