## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.10.0 %bcond_without check # https://github.com/ahmetb/kubectx %global goipath github.com/ahmetb/kubectx Version: 0.9.5 %gometa -f %global common_description %{expand: Faster way to switch between clusters and namespaces in kubectl.} %global golicenses LICENSE %global godocs CONTRIBUTING.md README.md Name: kubectx Release: %autorelease Summary: Faster way to switch between clusters and namespaces in kubectl License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %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 %{_bindir}/* %gopkgfiles %changelog ## START: Generated by rpmautospec * Sun Mar 31 2024 John Doe - 0.9.5-1 - Uncommitted changes ## END: Generated by rpmautospec