# Generated by go2rpm %bcond_without check # https://github.com/kubernetes/apiserver %global goipath k8s.io/apiserver %global forgeurl https://github.com/kubernetes/apiserver Version: 1.13.7 %global tag kubernetes-1.13.7-beta.0 %global distprefix %{nil} %gometa %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 example\\\ pkg/server/routes/data/README.md %global gosupfiles "${example[@]}" Name: %{goname} Release: 1.beta.0%{?dist} Summary: Library for writing a Kubernetes-style API server # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} # To use with newer github.com/kubernetes/kube-openapi Patch0: https://github.com/kubernetes/apiserver/commit/35fe690052537b72fce7231c2930dbe7b52d8af6.patch#/0001-remove-deprecated-openapi-paths-in-favor-of-openapi-v2.patch # To use with moved keyutils Patch1: https://github.com/kubernetes/apiserver/commit/3604e0cbb01b8bba97686ebfd15f6e510871ab95.patch#/0001-Extract-new-keyutil-package-from-client-go-util-cert.patch BuildRequires: golang(bitbucket.org/ww/goautoneg) BuildRequires: golang(github.com/coreos/go-oidc) BuildRequires: golang(github.com/coreos/go-systemd/daemon) BuildRequires: golang(github.com/docker/docker/pkg/term) BuildRequires: golang(github.com/elazarl/go-bindata-assetfs) BuildRequires: golang(github.com/emicklei/go-restful) BuildRequires: golang(github.com/emicklei/go-restful-swagger12) BuildRequires: golang(github.com/evanphx/json-patch) BuildRequires: golang(github.com/go-openapi/spec) BuildRequires: golang(github.com/gogo/protobuf/proto) BuildRequires: golang(github.com/gogo/protobuf/sortkeys) BuildRequires: golang(github.com/google/gofuzz) BuildRequires: golang(github.com/googleapis/gnostic/compiler) BuildRequires: golang(github.com/googleapis/gnostic/OpenAPIv2) BuildRequires: golang(github.com/grpc-ecosystem/go-grpc-prometheus) BuildRequires: golang(github.com/hashicorp/golang-lru) BuildRequires: golang(github.com/pborman/uuid) BuildRequires: golang(github.com/prometheus/client_golang/prometheus) BuildRequires: golang(github.com/spf13/pflag) BuildRequires: golang(golang.org/x/crypto/cryptobyte) BuildRequires: golang(golang.org/x/crypto/nacl/secretbox) BuildRequires: golang(golang.org/x/net/context) BuildRequires: golang(golang.org/x/net/http2) BuildRequires: golang(golang.org/x/net/websocket) BuildRequires: golang(google.golang.org/grpc) BuildRequires: golang(gopkg.in/natefinch/lumberjack.v2) BuildRequires: golang(gopkg.in/yaml.v2) BuildRequires: golang(go.etcd.io/etcd/client) BuildRequires: golang(go.etcd.io/etcd/clientv3) BuildRequires: golang(go.etcd.io/etcd/etcdserver) BuildRequires: golang(go.etcd.io/etcd/etcdserver/api/etcdhttp) BuildRequires: golang(go.etcd.io/etcd/etcdserver/api/v2http) BuildRequires: golang(go.etcd.io/etcd/etcdserver/api/v3rpc/rpctypes) BuildRequires: golang(go.etcd.io/etcd/integration) BuildRequires: golang(go.etcd.io/etcd/mvcc/mvccpb) BuildRequires: golang(go.etcd.io/etcd/pkg/testutil) BuildRequires: golang(go.etcd.io/etcd/pkg/transport) BuildRequires: golang(go.etcd.io/etcd/pkg/types) BuildRequires: golang(k8s.io/api/admission/v1beta1) BuildRequires: golang(k8s.io/api/admissionregistration/v1alpha1) BuildRequires: golang(k8s.io/api/admissionregistration/v1beta1) BuildRequires: golang(k8s.io/api/auditregistration/v1alpha1) BuildRequires: golang(k8s.io/api/authentication/v1) BuildRequires: golang(k8s.io/api/authentication/v1beta1) BuildRequires: golang(k8s.io/api/authorization/v1beta1) BuildRequires: golang(k8s.io/api/core/v1) BuildRequires: golang(k8s.io/apimachinery/pkg/api/apitesting) BuildRequires: golang(k8s.io/apimachinery/pkg/api/apitesting/fuzzer) BuildRequires: golang(k8s.io/apimachinery/pkg/api/equality) BuildRequires: golang(k8s.io/apimachinery/pkg/api/errors) BuildRequires: golang(k8s.io/apimachinery/pkg/api/meta) BuildRequires: golang(k8s.io/apimachinery/pkg/api/validation) BuildRequires: golang(k8s.io/apimachinery/pkg/api/validation/path) BuildRequires: golang(k8s.io/apimachinery/pkg/apis/meta/internalversion) BuildRequires: golang(k8s.io/apimachinery/pkg/apis/meta/v1) BuildRequires: golang(k8s.io/apimachinery/pkg/apis/meta/v1/unstructured) BuildRequires: golang(k8s.io/apimachinery/pkg/apis/meta/v1/validation) BuildRequires: golang(k8s.io/apimachinery/pkg/apis/meta/v1beta1) BuildRequires: golang(k8s.io/apimachinery/pkg/conversion) BuildRequires: golang(k8s.io/apimachinery/pkg/fields) BuildRequires: golang(k8s.io/apimachinery/pkg/labels) BuildRequires: golang(k8s.io/apimachinery/pkg/runtime) BuildRequires: golang(k8s.io/apimachinery/pkg/runtime/schema) BuildRequires: golang(k8s.io/apimachinery/pkg/runtime/serializer) BuildRequires: golang(k8s.io/apimachinery/pkg/runtime/serializer/json) BuildRequires: golang(k8s.io/apimachinery/pkg/runtime/serializer/recognizer) BuildRequires: golang(k8s.io/apimachinery/pkg/runtime/serializer/streaming) BuildRequires: golang(k8s.io/apimachinery/pkg/types) BuildRequires: golang(k8s.io/apimachinery/pkg/util/cache) BuildRequires: golang(k8s.io/apimachinery/pkg/util/clock) BuildRequires: golang(k8s.io/apimachinery/pkg/util/errors) BuildRequires: golang(k8s.io/apimachinery/pkg/util/intstr) BuildRequires: golang(k8s.io/apimachinery/pkg/util/json) BuildRequires: golang(k8s.io/apimachinery/pkg/util/mergepatch) BuildRequires: golang(k8s.io/apimachinery/pkg/util/net) BuildRequires: golang(k8s.io/apimachinery/pkg/util/rand) BuildRequires: golang(k8s.io/apimachinery/pkg/util/runtime) BuildRequires: golang(k8s.io/apimachinery/pkg/util/sets) BuildRequires: golang(k8s.io/apimachinery/pkg/util/strategicpatch) BuildRequires: golang(k8s.io/apimachinery/pkg/util/uuid) BuildRequires: golang(k8s.io/apimachinery/pkg/util/validation) BuildRequires: golang(k8s.io/apimachinery/pkg/util/validation/field) BuildRequires: golang(k8s.io/apimachinery/pkg/util/wait) BuildRequires: golang(k8s.io/apimachinery/pkg/util/waitgroup) BuildRequires: golang(k8s.io/apimachinery/pkg/version) BuildRequires: golang(k8s.io/apimachinery/pkg/watch) BuildRequires: golang(k8s.io/client-go/informers) BuildRequires: golang(k8s.io/client-go/informers/auditregistration/v1alpha1) BuildRequires: golang(k8s.io/client-go/kubernetes) BuildRequires: golang(k8s.io/client-go/kubernetes/fake) BuildRequires: golang(k8s.io/client-go/kubernetes/scheme) BuildRequires: golang(k8s.io/client-go/kubernetes/typed/authentication/v1beta1) BuildRequires: golang(k8s.io/client-go/kubernetes/typed/authorization/v1beta1) BuildRequires: golang(k8s.io/client-go/kubernetes/typed/core/v1) BuildRequires: golang(k8s.io/client-go/listers/admissionregistration/v1beta1) BuildRequires: golang(k8s.io/client-go/listers/core/v1) BuildRequires: golang(k8s.io/client-go/rest) BuildRequires: golang(k8s.io/client-go/tools/cache) BuildRequires: golang(k8s.io/client-go/tools/clientcmd) BuildRequires: golang(k8s.io/client-go/tools/clientcmd/api) BuildRequires: golang(k8s.io/client-go/tools/record) BuildRequires: golang(k8s.io/client-go/util/cert) BuildRequires: golang(k8s.io/client-go/util/keyutil) BuildRequires: golang(k8s.io/client-go/util/flowcontrol) BuildRequires: golang(k8s.io/klog) BuildRequires: golang(k8s.io/kube-openapi/pkg/builder) BuildRequires: golang(k8s.io/kube-openapi/pkg/common) BuildRequires: golang(k8s.io/kube-openapi/pkg/handler) BuildRequires: golang(k8s.io/kube-openapi/pkg/util) BuildRequires: golang(k8s.io/kube-openapi/pkg/util/proto) BuildRequires: golang(k8s.io/utils/pointer) BuildRequires: golang(sigs.k8s.io/yaml) %if %{with check} # Tests BuildRequires: golang(github.com/coreos/pkg/capnslog) BuildRequires: golang(github.com/prometheus/client_model/go) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) BuildRequires: golang(gopkg.in/square/go-jose.v2) BuildRequires: golang(k8s.io/api/batch/v1) BuildRequires: golang(k8s.io/api/extensions/v1beta1) BuildRequires: golang(k8s.io/apimachinery/pkg/api/apitesting/roundtrip) BuildRequires: golang(k8s.io/apimachinery/pkg/selection) BuildRequires: golang(k8s.io/apimachinery/pkg/util/diff) BuildRequires: golang(k8s.io/client-go/discovery) BuildRequires: golang(k8s.io/client-go/dynamic) BuildRequires: golang(k8s.io/client-go/testing) BuildRequires: golang(k8s.io/client-go/tools/clientcmd/api/v1) %endif %description %{common_description} %gopkg %prep %goprep %patch0 -p1 %patch1 -p1 find . -name "*.go" -exec sed -i "s|github.com/coreos/etcd|go.etcd.io/etcd|" "{}" +; %install mapfile -t example <<< $(find pkg/apis/example* -type f) %gopkginstall %if %{with check} %check # pkg/util/flag, pkg/util/globalflag: moved in next version: # https://github.com/kubernetes/apiserver/commit/c7299d9da0add5fcabbe9e03726551dbb8106e9f %gocheck -d pkg/util/flag -d pkg/util/globalflag -d pkg/storage/value/encrypt/envelop %endif %gopkgfiles %changelog * Mon May 13 01:09:57 CEST 2019 Robert-André Mauchin - 1.13.7-1.beta.0 - Initial package