# Generated by go2rpm %bcond_without check # https://github.com/kubernetes/gengo %global goipath k8s.io/gengo %global forgeurl https://github.com/kubernetes/gengo %global commit e17681d19d3ac4837a019ece36c2a0ec31ffe985 %gometa %global common_description %{expand: A package for generating things based on Go files. This mechanism was first used in Kubernetes and is split out here for ease of reuse and maintainability.} %global golicenses LICENSE %global godocs examples CONTRIBUTING.md README.md code-of-conduct.md %global gosupfiles "${examples[@]}" Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Gengo library for code generation # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/google/gofuzz) BuildRequires: golang(github.com/spf13/pflag) BuildRequires: golang(golang.org/x/tools/imports) BuildRequires: golang(k8s.io/klog) %if %{with check} # Tests BuildRequires: golang(github.com/davecgh/go-spew/spew) %endif %description %{common_description} %gopkg %prep %goprep %install mapfile -t examples <<< $(find examples -type f) %gopkginstall %if %{with check} %check %gocheck -d parser %endif %gopkgfiles %changelog * Thu May 09 23:22:46 CEST 2019 Robert-André Mauchin - 0-0.1.20190509gite17681d - Initial package