%global goproject github.com/kubernetes %global gorepo cloud-provider-aws %global goimport %{goproject}/%{gorepo} %global gover 1.27.1 %global rpmver %{gover} %global _dwz_low_mem_die_limit 0 Name: %{_cross_os}ecr-credential-provider-1.27 Version: %{rpmver} Release: 1%{?dist} Summary: Container image registry credential provider for AWS ECR License: Apache-2.0 URL: https://github.com/kubernetes/cloud-provider-aws Source: cloud-provider-aws-%{gover}.tar.gz Source1: bundled-cloud-provider-aws-%{gover}.tar.gz Source1000: clarify.toml BuildRequires: %{_cross_os}glibc-devel %description %{summary}. %prep %setup -n %{gorepo}-%{gover} -q %setup -T -D -n %{gorepo}-%{gover} -b 1 -q %build %set_cross_go_flags go build -buildmode=pie -ldflags="${GOLDFLAGS}" -o=ecr-credential-provider cmd/ecr-credential-provider/*.go %install install -d %{buildroot}%{_cross_libexecdir}/kubernetes/kubelet/plugins install -p -m 0755 ecr-credential-provider %{buildroot}%{_cross_libexecdir}/kubernetes/kubelet/plugins/ecr-credential-provider %cross_scan_attribution --clarify %{S:1000} go-vendor vendor %files %license LICENSE %{_cross_attribution_file} %{_cross_attribution_vendor_dir} %{_cross_libexecdir}/kubernetes/kubelet/plugins/ecr-credential-provider