From e442a4794a145e477f1a527cc9484e6ef2afcccc Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Jul 02 2019 20:53:06 +0000 Subject: Initial import Signed-off-by: Robert-André Mauchin --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0f51af6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/metrics-kubernetes-1.13.7-beta.0.tar.gz diff --git a/golang-k8s-metrics.spec b/golang-k8s-metrics.spec new file mode 100644 index 0000000..924d8ba --- /dev/null +++ b/golang-k8s-metrics.spec @@ -0,0 +1,81 @@ +# Generated by go2rpm +%bcond_without check + +# https://github.com/kubernetes/metrics +%global goipath k8s.io/metrics +%global forgeurl https://github.com/kubernetes/metrics +Version: 1.13.7 +%global tag kubernetes-1.13.7-beta.0 +%global distprefix %{nil} + +%gometa + +%global common_description %{expand: +This package contains type definitions and client code for the metrics APIs that +Kubernetes makes use of. Depending on the API, the actual implementations live +elsewhere. + +Consumers of the metrics APIs can make use of this repository to access +implementations of the APIs, while implementors should make use of this library +when implementing their API servers.} + +%global golicenses LICENSE +%global godocs README.md code-of-conduct.md CONTRIBUTING.md\\\ + IMPLEMENTATIONS.md + +Name: %{goname} +Release: 1.beta.0%{?dist} +Summary: Kubernetes metrics-related API types and clients + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/gogo/protobuf/proto) +BuildRequires: golang(github.com/gogo/protobuf/sortkeys) +BuildRequires: golang(k8s.io/api/core/v1) +BuildRequires: golang(k8s.io/apimachinery/pkg/api/meta) +BuildRequires: golang(k8s.io/apimachinery/pkg/api/resource) +BuildRequires: golang(k8s.io/apimachinery/pkg/apis/meta/v1) +BuildRequires: golang(k8s.io/apimachinery/pkg/conversion) +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/types) +BuildRequires: golang(k8s.io/apimachinery/pkg/util/runtime) +BuildRequires: golang(k8s.io/apimachinery/pkg/watch) +BuildRequires: golang(k8s.io/client-go/discovery) +BuildRequires: golang(k8s.io/client-go/discovery/fake) +BuildRequires: golang(k8s.io/client-go/kubernetes/scheme) +BuildRequires: golang(k8s.io/client-go/rest) +BuildRequires: golang(k8s.io/client-go/testing) +BuildRequires: golang(k8s.io/client-go/util/flowcontrol) + +%if %{with check} +# Tests +BuildRequires: golang(github.com/stretchr/testify/require) +%endif + +%description +%{common_description} + +%gopkg + +%prep +%goprep + +%install +%gopkginstall + +%if %{with check} +%check +%gocheck +%endif + +%gopkgfiles + +%changelog +* Mon May 20 18:27:03 CEST 2019 Robert-André Mauchin - 1.13.7-1.beta.0 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..e8b3d4a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (metrics-kubernetes-1.13.7-beta.0.tar.gz) = e34910173b8d0f5f2616d1a27dde6fa14bd12c90c3da7d81323365cde2a0e723ab600d2ce193862de71468bb03a7a85077f610ac59cb13418b7df9b5dcf44ddd