diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-07-28 15:13:11 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-07-28 15:13:11 +0000 |
commit | 2878dbbc11fa01329bb2c8bfa45046717e4d2cf8 (patch) | |
tree | af4f24e4ac798e99aaf524d484ee34e1133e330b | |
parent | b07ed7d3237fa06f8328c872b84f2247b436d400 (diff) |
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | go-vendor-tools.toml | 35 | ||||
-rw-r--r-- | helm.spec | 78 | ||||
-rw-r--r-- | sources | 2 |
4 files changed, 117 insertions, 0 deletions
@@ -0,0 +1,2 @@ +/helm-3.15.3-vendor.tar.bz2 +/helm-3.15.3.tar.gz diff --git a/go-vendor-tools.toml b/go-vendor-tools.toml new file mode 100644 index 0000000..5f6e5e5 --- /dev/null +++ b/go-vendor-tools.toml @@ -0,0 +1,35 @@ +[licensing] +detector = "trivy" +exclude_files = [ + "scripts/coverage.sh", + "scripts/release-notes.sh", + "scripts/sync-repo.sh", + "scripts/util.sh", + "scripts/validate-license.sh", + "vendor/github.com/lib/pq/notice.go", + "vendor/go.opentelemetry.io/otel/get_main_pkgs.sh", + "vendor/go.opentelemetry.io/otel/verify_examples.sh", + "vendor/k8s.io/kubectl/pkg/util/i18n/translations/extract.py" +] + +[[licensing.licenses]] +path = "vendor/github.com/google/shlex/COPYING" +sha256sum = "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30" +expression = "Apache-2.0" + +[[licensing.licenses]] +path = "vendor/github.com/BurntSushi/toml/COPYING" +sha256sum = "d21cb1c60785d6d3a84a7059323ccafc45c645b1bbda281c76a62d66ad2d7dc3" +expression = "MIT" + +[[licensing.licenses]] +path = "vendor/github.com/go-errors/errors/LICENSE.MIT" +sha256sum = "4c1b2259f160d975ec6594b602be5db4e6c0c06afe312ca3cd7cff91b75c7c26" +expression = "MIT" + +[[licensing.licenses]] +path = "vendor/github.com/yvasiyarov/go-metrics/LICENSE" +sha256sum = "d2571186acad91c8a3121fb31f1aa5963e82ccd08608d00cef3eb3f3a6c8ad38" +expression = "BSD-2-Clause-Views" + +[archive] diff --git a/helm.spec b/helm.spec new file mode 100644 index 0000000..04eb2db --- /dev/null +++ b/helm.spec @@ -0,0 +1,78 @@ +# Generated by go2rpm 1.14.0 +%bcond check 1 + +# https://github.com/helm/helm +%global goipath helm.sh/helm/v3 +%global forgeurl https://github.com/helm/helm +Version: 3.15.3 + +%gometa -L -f + +%global common_description %{expand: +The Kubernetes Package Manager.} + +Name: helm +Release: %autorelease +Summary: The Kubernetes Package Manager + +# Generated by go-vendor-tools +License: Apache-2.0 AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Zlib +URL: %{gourl} +Source0: %{gosource} +# Generated by go-vendor-tools +Source1: %{archivename}-vendor.tar.bz2 +Source2: go-vendor-tools.toml + +Obsoletes: golang-helm-3 < 3.11.1-6 +Obsoletes: golang-helm-3-devel < 3.11.1-6 + +BuildRequires: go-vendor-tools + +%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 helm.sh/helm/v3/internal/version.version=%{version}" +%gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/cmd/%{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 "TestRenderWithDNS" "TestVCSInstallerNonExistentVersion" "TestVCSInstallerUpdate" \ + "TestVCSInstaller" \ +; 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 ADOPTERS.md CONTRIBUTING.md README.md SECURITY.md code-of-conduct.md +%{_bindir}/helm +%{bash_completions_dir}/%{name} +%{fish_completions_dir}/%{name}.fish +%{zsh_completions_dir}/_%{name} + +%changelog +%autochangelog @@ -0,0 +1,2 @@ +ecf47258c64e29a7f9af4b92c1a5e5db helm-3.15.3-vendor.tar.bz2 +a44313d95b93b591d2199adf7c621f46 helm-3.15.3.tar.gz |