generated from demus/golang-rpm
61 lines
1.3 KiB
RPMSpec
61 lines
1.3 KiB
RPMSpec
|
# Generated by go2rpm 1.15.0
|
|||
|
%bcond check 1
|
|||
|
%bcond bootstrap 0
|
|||
|
|
|||
|
%global debug_package %{nil}
|
|||
|
%if %{with bootstrap}
|
|||
|
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
|
|||
|
%endif
|
|||
|
|
|||
|
# https://github.com/kubernetes/cri-api
|
|||
|
%global goipath k8s.io/cri-api
|
|||
|
%global forgeurl https://github.com/kubernetes/cri-api
|
|||
|
Version: 1.32.0
|
|||
|
%global tag kubernetes-1.32.0
|
|||
|
%global distprefix %{nil}
|
|||
|
|
|||
|
%gometa -L -f
|
|||
|
|
|||
|
%global common_description %{expand:
|
|||
|
Container Runtime Interface (CRI) – a plugin interface which enables kubelet to
|
|||
|
use a wide variety of container runtimes.}
|
|||
|
|
|||
|
%global golicenses LICENSE
|
|||
|
%global godocs CONTRIBUTING.md README.md code-of-conduct.md
|
|||
|
|
|||
|
Name: golang-k8s-cri-api
|
|||
|
Release: %autorelease
|
|||
|
Summary: Container Runtime Interface (CRI) – a plugin interface which enables kubelet to use a wide variety of container runtimes
|
|||
|
|
|||
|
License: Apache-2.0
|
|||
|
URL: %{gourl}
|
|||
|
Source: %{gosource}
|
|||
|
|
|||
|
%description %{common_description}
|
|||
|
|
|||
|
%gopkg
|
|||
|
|
|||
|
%prep
|
|||
|
%goprep -A
|
|||
|
%dnl %autopatch -p1
|
|||
|
|
|||
|
%if %{without bootstrap}
|
|||
|
%generate_buildrequires
|
|||
|
%go_generate_buildrequires
|
|||
|
%endif
|
|||
|
|
|||
|
%install
|
|||
|
%gopkginstall
|
|||
|
|
|||
|
%if %{without bootstrap}
|
|||
|
%if %{with check}
|
|||
|
%check
|
|||
|
%gocheck
|
|||
|
%endif
|
|||
|
%endif
|
|||
|
|
|||
|
%gopkgfiles
|
|||
|
|
|||
|
%changelog
|
|||
|
%autochangelog
|