File helm.spec of Package helm
#
# spec file for package helm
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define git_commit %{version}
Name: helm
Version: 2.8.2
Release: 0
Summary: The Kubernetes Package Manager
License: Apache-2.0
Group: Development/Languages/Other
URL: https://github.com/kubernetes/helm
Source: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
Patch1: 0001_fix_short_version.patch
BuildRequires: go1.10 >= 1.10.6
BuildRequires: golang-packaging
BuildRequires: xz
%{go_nostrip}
%{go_provides}
%description
Helm is a tool for managing Kubernetes charts. Charts are packages of pre-configured Kubernetes resources.
%prep
%setup -q
tar xJf %{SOURCE1}
%patch1 -p1
%{goprep} k8s.io/helm
%build
export GOPATH="%{_builddir}/go:$GOPATH"
GOBIN=$PWD/bin go install -tags '' -ldflags ' -X k8s.io/helm/pkg/version.Version=v%{version} -X k8s.io/helm/pkg/version.BuildMetadata= -X k8s.io/helm/pkg/version.GitCommit=%{git_commit} -X k8s.io/helm/pkg/version.GitTreeState=clean' k8s.io/helm/cmd/...
%install
mkdir -p %{buildroot}%{_bindir}
install -m755 bin/helm %{buildroot}/%{_bindir}/helm
install -m755 bin/tiller %{buildroot}/%{_bindir}/tiller
%files
%doc README.md
%license LICENSE
%{_bindir}/helm
%{_bindir}/tiller
%changelog