# Generated by go2rpm 1.8.2 # rounding error on some arch %ifarch x86_64 %bcond_without check %endif %bcond_without bootstrap %if %{without bootstrap} %global debug_package %{nil} %endif # https://github.com/kubernetes/kube-openapi %global goipath k8s.io/kube-openapi %global forgeurl https://github.com/kubernetes/kube-openapi %global commit a28e98eb7c70822b5bb7d633ac1760c6442632ff %gometa %global common_description %{expand: Kubernetes OpenAPI spec generation & serving.} %global golicenses LICENSE %global godocs CONTRIBUTING.md README.md SECURITY.md code-of-\\\ conduct.md Name: %{goname} Version: 0 Release: %autorelease -p Summary: Kubernetes OpenAPI spec generation & serving License: BSD-3-Clause AND Apache-2.0 URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep sed -i "s|github.com/munnerz/goautoneg|bitbucket.org/ww/goautoneg|" $(find . -name "*.go") %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}/openapi* %endif %gopkgfiles %changelog %autochangelog