# 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/aws-iam-authenticator %global goipath sigs.k8s.io/aws-iam-authenticator %global forgeurl https://github.com/kubernetes-sigs/aws-iam-authenticator Version: 0.5.10 %gometa %global common_description %{expand: A tool to use AWS IAM credentials to authenticate to a Kubernetes cluster. The initial work on this tool was driven by Heptio. The project receives contributions from multiple community engineers and is currently maintained by Heptio and Amazon EKS OSS Engineers.} %global golicenses LICENSE %global godocs docs CHANGELOG.md CONTRIBUTING.md code-of-conduct.md\\\ README.md Name: %{goname} Release: %autorelease Summary: Tool to use AWS IAM credentials to authenticate to a Kubernetes cluster 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 CHANGELOG.md CONTRIBUTING.md code-of-conduct.md README.md %{_bindir}/aws-iam-authenticator %endif %gopkgfiles %changelog %autochangelog