## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1.5.0 %bcond_without check # https://github.com/kubernetes/pod-security-admission %global goipath k8s.io/pod-security-admission %global forgeurl https://github.com/kubernetes/pod-security-admission Version: 1.22.0 %global tag kubernetes-1.22.0 %global distprefix %{nil} %gometa %global common_description %{expand: Kubernetes Pod Security Standards implementation.} %global golicenses LICENSE %global godocs CONTRIBUTING.md README.md code-of-conduct.md Name: %{goname} Release: %autorelease Summary: Kubernetes Pod Security Standards implementation # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/spf13/cobra) BuildRequires: golang(github.com/spf13/pflag) BuildRequires: golang(k8s.io/api/admission/v1) BuildRequires: golang(k8s.io/api/apps/v1) BuildRequires: golang(k8s.io/api/batch/v1) BuildRequires: golang(k8s.io/api/core/v1) BuildRequires: golang(k8s.io/apimachinery/pkg/api/errors) BuildRequires: golang(k8s.io/apimachinery/pkg/api/validation) 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/util/errors) BuildRequires: golang(k8s.io/apimachinery/pkg/util/runtime) BuildRequires: golang(k8s.io/apimachinery/pkg/util/sets) BuildRequires: golang(k8s.io/apimachinery/pkg/util/validation/field) BuildRequires: golang(k8s.io/apiserver/pkg/server) BuildRequires: golang(k8s.io/apiserver/pkg/server/healthz) BuildRequires: golang(k8s.io/apiserver/pkg/server/options) BuildRequires: golang(k8s.io/client-go/informers) BuildRequires: golang(k8s.io/client-go/kubernetes) BuildRequires: golang(k8s.io/client-go/listers/core/v1) BuildRequires: golang(k8s.io/client-go/rest) BuildRequires: golang(k8s.io/client-go/tools/clientcmd) BuildRequires: golang(k8s.io/component-base/cli/flag) BuildRequires: golang(k8s.io/component-base/featuregate) BuildRequires: golang(k8s.io/component-base/logs) BuildRequires: golang(k8s.io/component-base/logs/json/register) BuildRequires: golang(k8s.io/klog/v2) BuildRequires: golang(k8s.io/utils/pointer) %if %{with check} # Tests BuildRequires: golang(github.com/google/go-cmp/cmp) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) BuildRequires: golang(k8s.io/apimachinery/pkg/util/diff) BuildRequires: golang(k8s.io/client-go/kubernetes/scheme) BuildRequires: golang(sigs.k8s.io/yaml) %endif %description %{common_description} %gopkg %prep %goprep %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %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 CONTRIBUTING.md README.md code-of-conduct.md %{_bindir}/* %gopkgfiles %changelog * Tue Sep 14 2021 Robert-André Mauchin 1.22.0-1 - Uncommitted changes * Tue Sep 14 2021 Robert-André Mauchin None-1 - Initial release