SHA256
1
0
forked from pool/helmfile
helmfile/helmfile.spec
Manfred Hollstein 66b195aba1 Accepting request 999049 from home:manfred-h:devel:kubic
- autocomplete files have been removed; obsolete bash-completion
  and zsh-completion sub-packages older than this version.

OBS-URL: https://build.opensuse.org/request/show/999049
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/helmfile?expand=0&rev=61
2022-08-24 11:48:50 +00:00

66 lines
2.0 KiB
RPMSpec

#
# spec file for package helmfile
#
# Copyright (c) 2022 SUSE LLC
# 2021 Manfred Hollstein <manfred.h@gmx.net>
#
# 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/
#
%define git_commit e44a915d4024a161d2a5642cf078038ea314fc72
Name: helmfile
Version: 0.145.3
Release: 0
Summary: Deploy Kubernetes Helm Charts
License: MIT
Group: Development/Languages/Other
URL: https://github.com/helmfile/helmfile
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
Requires: helm
BuildRequires: golang-packaging
BuildRequires: xz
BuildRequires: golang(API) >= 1.16
Obsoletes: %{name}-bash-completion < %{version}
Obsoletes: %{name}-zsh-completion < %{version}
%{go_nostrip}
%{go_provides}
%description
Helmfile is a declarative spec for deploying helm charts. It lets you...
* Keep a directory of chart value files and maintain changes in version control.
* Apply CI/CD to configuration changes.
* Periodically sync to avoid skew in environments.
To avoid upgrades for each iteration of helm, the helmfile executable
delegates to helm - as a result, helm must be installed.
%prep
%setup -qa1
%build
go build -mod=vendor -buildmode=pie
%install
make TAG=v%{version} install
mkdir -p %{buildroot}%{_bindir}
install -m755 ${HOME}/go/bin/helmfile %{buildroot}/%{_bindir}/helmfile
%files
%doc README.md
%license LICENSE
%{_bindir}/helmfile
%changelog