# Generated by go2rpm 1.8.2 %bcond_without check %bcond_without bootstrap %if %{with bootstrap} %global debug_package %{nil} %endif # https://github.com/kubernetes-sigs/application %global goipath sigs.k8s.io/application %global forgeurl https://github.com/kubernetes-sigs/application Version: 0.8.3 %gometa %global common_description %{expand: Application metadata descriptor CRD.} %global golicenses LICENSE LICENSE_TEMPLATE %global godocs docs CONTRIBUTING.md README.md code-of-conduct.md Name: %{goname} Release: %autorelease Summary: Application metadata descriptor CRD 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/kube-app-manager %{goipath} %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 # needs /usr/local/kubebuilder/bin/etcd %gocheck -d api/v1beta1 -d controllers %endif %endif %if %{without bootstrap} %files %license LICENSE LICENSE_TEMPLATE %doc docs CONTRIBUTING.md README.md code-of-conduct.md hack/boilerplate.go.txt %{_bindir}/kube-app-manager %endif %gopkgfiles %changelog %autochangelog