# Generated by go2rpm %bcond_without check %global _debugsource_template %{nil} # https://github.com/ericchiang/k8s %global goipath github.com/ericchiang/k8s Version: 1.2.0 #global commit 08b7bf46703ad24b5420601bf6df6d69b4b74201 #global tag 1.2.0 %gometa %global common_description %{expand: A simple Kubernetes Go client.} %global golicenses LICENSE %global godocs examples README.md Name: %{goname} Release: 1%{?dist} Summary: A simple Kubernetes Go client # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/golang/protobuf/proto) BuildRequires: golang(golang.org/x/net/http2) %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/k8s-client %{goipath}/ %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 examples README.md %{_bindir}/* %gopkgfiles %changelog * Wed Feb 05 2020 Xavier Bachelot - 1.2.0-1.20200205git08b7bf4 - Initial package