# 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.18.3
%global tag kubernetes-1.18.3
%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%{?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 Jul 06 15:49:53 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1.18.3-1
- Update to 1.18.3
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Jul 07 14:24:00 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.15.0-1
- Release 1.15.0
* Mon May 20 16:43:35 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.13.7-1.beta.0
- Initial package