# Generated by go2rpm 1.8.2 %bcond_without check %bcond_with bootstrap # https://github.com/kubernetes-sigs/apiserver-network-proxy %global goipath sigs.k8s.io/apiserver-network-proxy %global forgeurl https://github.com/kubernetes-sigs/apiserver-network-proxy Version: 0.0.33 %gometa %global common_description %{expand: Proto-type and reference implementations for server network proxies.} %global golicenses LICENSE %global godocs examples CONTRIBUTING.md README.md RELEASE.md code-\\\ of-conduct.md Name: %{goname} Release: %autorelease Summary: Proto-type and reference implementations for server network proxies 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/proxy-agent %{goipath}/cmd/agent %gobuild -o %{gobuilddir}/bin/proxy-test-client %{goipath}/cmd/client %gobuild -o %{gobuilddir}/bin/http-test-server %{goipath}/cmd/test-server %gobuild -o %{gobuilddir}/bin/proxy-server %{goipath}/cmd/server %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 examples CONTRIBUTING.md README.md RELEASE.md code-of-conduct.md %{_bindir}/proxy-agent %{_bindir}/proxy-test-client %{_bindir}/http-test-server %{_bindir}/proxy-server %endif %gopkgfiles %changelog %autochangelog