# Go compiler sets its own build ID, causing the build to fail. %global _missing_build_ids_terminate_build 0 # Lack of debug files causes build to fail %global debug_package %{nil} Name: kustomize Version: 5.4.3 Release: %autorelease Summary: Customization of kubernetes YAML configurations License: Apache2 URL: https://kustomize.io/ Source0: https://github.com/kubernetes-sigs/kustomize/archive/refs/tags/kustomize/v%{version}.tar.gz # e.g. el6 has ppc64 arch without gcc-go, so EA tag is required ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}} # If go_compiler is not set to 1, there is no virtual provide. Use golang instead. BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} BuildRequires: git %description Kustomize lets you customize raw, template-free YAML files for multiple purposes, leaving the original YAML untouched and usable as is. %prep %autosetup -n %{name}-%{name}-v%{version}/%{name} %build export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" go build %install install -Dm0755 kustomize %{buildroot}%{_bindir}/kustomize %files %license ../LICENSE %doc ../README.md %{_bindir}/%{name} %changelog %autochangelog