Files
golang-k8s-apiserver-rpm/golang-k8s-apiserver.spec
2025-01-14 16:09:49 +01:00

87 lines
1.9 KiB
RPMSpec

# Generated by go2rpm 1.15.0
%bcond check 0
%bcond bootstrap 0
%if %{with bootstrap}
%global debug_package %{nil}
%endif
%if %{with bootstrap}
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
%endif
# https://github.com/kubernetes/apiserver
%global goipath k8s.io/apiserver
%global forgeurl https://github.com/kubernetes/apiserver
Version: 1.26.2
%global tag kubernetes-1.26.2
%gometa -f
%global common_description %{expand:
Library for writing a Kubernetes-style API server.}
%global golicenses LICENSE
%global godocs CONTRIBUTING.md README.md code-of-conduct.md example
Name: golang-k8s-apiserver
Release: %autorelease
Summary: Library for writing a Kubernetes-style API server
License: Apache-2.0
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep -A
%autopatch -p1 -q
%if %{without bootstrap}
%generate_buildrequires
%go_generate_buildrequires
%endif
%if %{without bootstrap}
%build
for cmd in pkg/admission/plugin/webhook/testing/main; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%endif
%install
%gopkginstall
%if %{without bootstrap}
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%endif
%if %{without bootstrap}
%if %{with check}
%check
%gocheck
%endif
%endif
%if %{without bootstrap}
%files
%license LICENSE
%doc CONTRIBUTING.md README.md code-of-conduct.md
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
# ---
# New Fedora packages should not use globs to avoid installing conflicting
# binaries.
# Write a _bindir line per each of the binaries the package will install.
# ---
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
%{_bindir}/*
%endif
%gopkgfiles
%changelog
%autochangelog