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

%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
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

Helm is a tool for managing Kubernetes charts. Charts are packages of pre-configured Kubernetes resources.

%setup -q
tar xJf %{SOURCE1}
%patch1 -p1

export GOPATH="%{_builddir}/go:$GOPATH"
GOBIN=$PWD/bin go install -tags '' -ldflags ' -X{version} -X -X{git_commit} -X'

mkdir -p %{buildroot}%{_bindir}
install -m755 bin/helm %{buildroot}/%{_bindir}/helm
install -m755 bin/tiller %{buildroot}/%{_bindir}/tiller

%license LICENSE

openSUSE Build Service is sponsored by