2020-07-17 15:08:31 +02:00
|
|
|
#
|
|
|
|
# spec file for package helmfile
|
|
|
|
#
|
2023-01-23 19:20:49 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2021-01-13 15:47:18 +01:00
|
|
|
# 2021 Manfred Hollstein <manfred.h@gmx.net>
|
2020-07-17 15:08:31 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2021-08-17 10:41:03 +02:00
|
|
|
|
2023-10-24 14:21:48 +02:00
|
|
|
%define git_commit 9596790a51f9a2c32b66c44cd8b9850c4aa2d7ef
|
2020-07-17 15:08:31 +02:00
|
|
|
Name: helmfile
|
2023-10-24 14:21:48 +02:00
|
|
|
Version: 0.158.0
|
2020-07-17 15:08:31 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Deploy Kubernetes Helm Charts
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Other
|
2022-07-26 10:07:22 +02:00
|
|
|
URL: https://github.com/helmfile/helmfile
|
2020-07-17 15:08:31 +02:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
Source1: vendor.tar.gz
|
2023-02-09 10:57:59 +01:00
|
|
|
Requires: helm >= 3.11.1
|
2023-10-24 14:21:48 +02:00
|
|
|
Recommends: helm >= 3.13.1
|
2020-07-17 15:08:31 +02:00
|
|
|
BuildRequires: golang-packaging
|
|
|
|
BuildRequires: xz
|
2023-10-24 14:21:48 +02:00
|
|
|
BuildRequires: golang(API) >= 1.21
|
2022-08-24 13:48:50 +02:00
|
|
|
Obsoletes: %{name}-bash-completion < %{version}
|
|
|
|
Obsoletes: %{name}-zsh-completion < %{version}
|
2020-07-17 15:08:31 +02:00
|
|
|
|
|
|
|
%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
|
2022-11-15 12:18:31 +01:00
|
|
|
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
|
|
|
|
SOURCE_DATE_EPOCH=$(date -u -d "${modified}" "+%s")
|
|
|
|
export SOURCE_DATE_EPOCH
|
|
|
|
rm -f source_date_epoch
|
|
|
|
echo SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH > source_date_epoch
|
2020-07-17 15:08:31 +02:00
|
|
|
go build -mod=vendor -buildmode=pie
|
|
|
|
|
|
|
|
%install
|
2022-11-15 12:18:31 +01:00
|
|
|
. ./source_date_epoch
|
|
|
|
export SOURCE_DATE_EPOCH
|
2020-07-25 09:55:50 +02:00
|
|
|
make TAG=v%{version} install
|
2020-07-17 15:08:31 +02:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
2020-07-21 15:16:49 +02:00
|
|
|
install -m755 ${HOME}/go/bin/helmfile %{buildroot}/%{_bindir}/helmfile
|
2020-07-17 15:08:31 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/helmfile
|
|
|
|
|
|
|
|
%changelog
|