# Generated by go2rpm 1.8.2 %bcond_without check %bcond_with bootstrap %if %{with bootstrap} %global debug_package %{nil} %endif # https://github.com/kubernetes/pod-security-admission %global goipath k8s.io/pod-security-admission %global forgeurl https://github.com/kubernetes/pod-security-admission Version: 1.26.0~rc.0 %global tag kubernetes-1.26.0-rc.0 %global distprefix %{nil} %gometa %global common_description %{expand: Kubernetes Pod Security Standards implementation.} %global golicenses LICENSE %global godocs CONTRIBUTING.md README.md code-of-conduct.md Name: %{goname} Release: %autorelease Summary: Kubernetes Pod Security Standards implementation 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 for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %endif %install %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 %gocheck %endif %endif %if %{without bootstrap} %files %license LICENSE %doc CONTRIBUTING.md README.md code-of-conduct.md %{_bindir}/* %endif %gopkgfiles %changelog %autochangelog