# Generated by go2rpm 1.8.2 %bcond_without check %bcond_without bootstrap %global debug_package %{nil} # https://github.com/kubernetes/apiserver %global goipath k8s.io/apiserver %global forgeurl https://github.com/kubernetes/apiserver Version: 1.26.0~rc.0 %global tag kubernetes-1.26.0-rc.0 %global distprefix %{nil} %gometa %global godevelheader %{expand: Provides: golang(%{goipath}/pkg/apis/example) = %{version}-%{release} Provides: golang(%{goipath}/pkg/apis/example2) = %{version}-%{release}} %global common_description %{expand: This library contains code to create Kubernetes aggregation server complete with delegated authentication and authorization, kubectl compatible discovery information, optional admission chain, and versioned types. It's first consumers are k8s.io/kubernetes, k8s.io/kube-aggregator, and github.com/kubernetes-incubator/service-catalog.} %global golicenses LICENSE %global godocs code-of-conduct.md CONTRIBUTING.md README.md %global gosupfiles ${example[@]} ${testdata[@]} Name: %{goname} Release: %autorelease Summary: Library for writing a Kubernetes-style API server License: Apache-2.0 URL: %{gourl} Source: %{gosource} BuildRequires: golang(github.com/blang/semver/v4) %description %{common_description} %gopkg %prep %goprep sed -i "s|github.com/munnerz/goautoneg|bitbucket.org/ww/goautoneg|" $(find . -name "*.go") sed -i "s|github.com/coreos/go-oidc|github.com/coreos/go-oidc/v3/oidc|" $(find . -name "*.go") %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %install mapfile -t example <<< $(find pkg/apis/example* -type f) mapfile -t testdata <<< $(ls **/testdata/*) %gopkginstall %if %{without bootstrap} %if %{with check} %check %gocheck -d pkg/endpoints/handlers/fieldmanager -d pkg/server/filters %endif %endif %gopkgfiles %changelog %autochangelog