File helm.spec of Package helm
#
# spec file for package helm
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global provider github
%global provider_tld com
%global project helm
%global repo helm
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path %{provider_prefix}
%define git_commit ac925eb7279f4a6955df663a0128044a8a6b7593
Name: helm
Version: 3.3.4
Release: 0
Summary: The Kubernetes Package Manager
License: Apache-2.0
Group: Development/Languages/Other
URL: https://github.com/kubernetes/helm
Source: %{repo}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: golang-packaging
BuildRequires: golang(API) >= 1.13
%{go_nostrip}
%{go_provides}
%description
Helm is a tool for managing Kubernetes charts. Charts are packages of pre-configured Kubernetes resources.
%prep
%setup -q -n %{repo}-%{version}
%setup -q -D -T -a 1 -n %{repo}-%{version}
%build
go build -mod=vendor -buildmode=pie ./cmd/helm
%install
mkdir -p %{buildroot}%{_bindir}
install -m755 helm %{buildroot}/%{_bindir}/helm
%files
%doc README.md
%license LICENSE
%{_bindir}/helm
%changelog