## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # 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.22.0 %global tag kubernetes-1.22.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 # This package uses gold. Tell package-notes implementation about this. %global _package_note_linker gold Name: %{goname} Release: %autorelease 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 * Wed Aug 10 2022 Maxwell G 1.22.0-7 - Rebuild to fix FTBFS * Thu Jul 21 2022 Fedora Release Engineering 1.22.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G 1.22.0-5 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jun 18 2022 Robert-André Mauchin 1.22.0-4 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Sat Feb 19 2022 Zbigniew Jędrzejewski-Szmek 1.22.0-3 - Disable package notes because gold linker is used * Thu Jan 20 2022 Fedora Release Engineering 1.22.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Aug 29 2021 Robert-André Mauchin 1.22.0-1 - Update to 1.22.0 * Thu Jul 22 2021 Fedora Release Engineering - 1.18.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.18.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Sep 30 01:50:08 CEST 2020 Robert-André Mauchin - 1.18.9-1 - Update to 1.18.9 * Mon Aug 24 01:16:25 CEST 2020 Robert-André Mauchin - 1.18.3-3 - Rebuilt * Mon Jul 27 2020 Fedora Release Engineering - 1.18.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 06 15:49:53 CEST 2020 Robert-André Mauchin - 1.18.3-1 - Update to 1.18.3 * Wed Jan 29 2020 Fedora Release Engineering - 1.15.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 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 - 1.15.0-1 - Release 1.15.0 * Mon May 20 16:43:35 CEST 2019 Robert-André Mauchin - 1.13.7-1.beta.0 - Initial package