# Generated by go2rpm 1.14.0 %bcond check 1 # https://github.com/kubernetes-sigs/kustomize %global goipath sigs.k8s.io/kustomize %global forgeurl https://github.com/kubernetes-sigs/kustomize Version: 5.5.0 %global tag kustomize/v5.5.0 %gometa -L -f %global common_description %{expand: Customization of kubernetes YAML configurations.} Name: kustomize Release: %autorelease Summary: Customization of kubernetes YAML configurations # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND GPL-3.0-only AND ISC AND MIT AND MPL-2.0 AND Unlicense URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: git-core BuildRequires: go-vendor-tools Requires: git-core %description %{common_description} %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build export LDFLAGS="-X sigs.k8s.io/kustomize/api/provenance.version=v%{version} \ -X sigs.k8s.io/kustomize/api/provenance.buildDate=$(date -d "@${SOURCE_DATE_EPOCH}" +%Y-%m-%dT%H:%M:%SZ)" %gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/%{name} %{gobuilddir}/bin/%{name} completion bash > %{name}.bash %{gobuilddir}/bin/%{name} completion fish > %{name}.fish %{gobuilddir}/bin/%{name} completion zsh > %{name}.zsh %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -Dpm 0644 %{name}.bash %{buildroot}%{bash_completions_dir}/%{name} install -Dpm 0644 %{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish install -Dpm 0644 %{name}.zsh %{buildroot}%{zsh_completions_dir}/_%{name} %check %go_vendor_license_check -c %{S:2} %if %{with check} for test in "TestIssue1251_Plugins_ProdVsDev" "TestIssue1251_Plugins_Local" "TestIssue1251_Plugins_Bundled" \ "TestAddManagedbyLabel" "TestCustomOpenApiFieldBasicUsageWithRemoteSchema" \ "TestCustomOpenApiFieldFromBaseWithRemoteSchema" "TestCustomOpenApiFieldFromOverlayWithRemoteSchema" \ "TestAnnoOriginRemoteBuiltinGenerator" "TestRemoteLoad_RemoteProtocols" "TestAnnoOriginRemoteBuiltinTransformer" \ "TestRemoteTargetDefaultDst" "TestBadArgs" "TestRemoteFile" "TestRemoteRoot" "TestNestedRemoteRoots" \ "TestResourcesRepoNotFile" "TestRemoteRootNoRef" "TestExistingCacheDir" "TestGetProvenance" \ "TestProvenance_Short" "TestProvenance_Semver" "TestListCommand" "TestPinCommand" \ "TestTransformerConverter" "TestGeneratorConverter" "TestCompiler" "TestLoader" \ "TestPluginsNotEnabled" "TestReusableCustomTransformers" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc examples ARCHITECTURE.md CONTRIBUTING.md README.md ROADMAP.md %{_bindir}/kustomize %{bash_completions_dir}/%{name} %{fish_completions_dir}/%{name}.fish %{zsh_completions_dir}/_%{name} %changelog %autochangelog