# Generated by go2rpm %bcond_without check # https://github.com/kubernetes/sample-cli-plugin %global goipath k8s.io/sample-cli-plugin %global forgeurl https://github.com/kubernetes/sample-cli-plugin Version: 1.13.7 %global tag kubernetes-1.13.7-beta.0 %global distprefix %{nil} %gometa %global common_description %{expand: This package implements a single kubectl plugin for switching the namespace that the current KUBECONFIG context points to. In order to remain as indestructive as possible, no existing contexts are modified.} %global golicenses LICENSE %global godocs CONTRIBUTING.md README.md code-of-conduct.md Name: %{goname} Release: 1.beta.0%{?dist} Summary: Sample kubectl plugin # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/spf13/cobra) BuildRequires: golang(github.com/spf13/pflag) BuildRequires: golang(k8s.io/cli-runtime/pkg/genericclioptions) BuildRequires: golang(k8s.io/client-go/tools/clientcmd) BuildRequires: golang(k8s.io/client-go/tools/clientcmd/api) %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/kubectl-ns %{goipath}/cmd/ %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc CONTRIBUTING.md README.md code-of-conduct.md %{_bindir}/* %gopkgfiles %changelog * Mon May 20 16:43:35 CEST 2019 Robert-André Mauchin - 1.13.7-1.beta.0 - Initial package