helmfile/helmfile.spec
Manfred Hollstein cc863d7f18 Accepting request 1141197 from home:manfred-h:devel:kubic
- Update to version 0.161.0:
  What's Changed
  * build(deps): bump github.com/helmfile/vals from 0.31.0 to
    0.32.0 by @dependabot in #1250
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.8 to
    1.49.9 by @dependabot in #1251
  * feat: respect helmfile.lock with ad-hoc kustimzation by
    @vlpav030 in #1244
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.9 to
    1.49.10 by @dependabot in #1257
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.10 to
    1.49.11 by @dependabot in #1259
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.11 to
    1.49.12 by @dependabot in #1260
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.12 to
    1.49.13 by @dependabot in #1263
  * fix: prevent preparing chart for disabled releases by
    @mighty1231 in #1210
  * add support for HELMFILE_FILE_PATH envvar to set -f by
    @sstarcher in #1255
  * fix checker error message by @petelock in #1266
  * build(deps): bump golang.org/x/term from 0.15.0 to 0.16.0
    by @dependabot in #1267
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.13 to
    1.49.14 by @dependabot in #1269
  * build(deps): bump golang.org/x/sync from 0.5.0 to 0.6.0 by
    @dependabot in #1268
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.14 to
    1.49.15 by @dependabot in #1270
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.15 to
    1.49.16 by @dependabot in #1272
  * build(deps): bump github.com/cloudflare/circl from 1.3.3 to
    1.3.7 by @dependabot in #1273
  * feat: include func support more template functions by
    @yxxhero in #1277
  * chore: add zhihu to list of helmfile users by @zhaogaolong
    in #1278
  * Bugfix: do not print registry password to stdout when running
    by @ennekein in #1275
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.16 to
    1.49.17 by @dependabot in #1279
  * build(deps): bump gitpython from 3.1.37 to 3.1.41 in /docs
    by @dependabot in #1280
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.17 to
    1.49.18 by @dependabot in #1283
  * build(deps): bump jinja2 from 3.1.1 to 3.1.3 in /docs by
    @dependabot in #1284
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.18 to
    1.49.19 by @dependabot in #1285
  * feat: bump helm-diff to v3.9.1 by @yxxhero in #1286
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.19 to
    1.49.21 by @dependabot in #1287
  * Bump helm diff to 3.9.2 by @kxkcx in #1291
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.21 to
    1.49.22 by @dependabot in #1292
  * fix: issue with pre-release Helm version by @yxxhero in #1293
  * build(deps): bump k8s.io/apimachinery from 0.29.0 to 0.29.1
    by @dependabot in #1298
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.22 to
    1.49.23 by @dependabot in #1296
  * Bump helm diff to 3.9.2 by @kxkcx in #1299
  * feat: bump helm to 3.14.0 by @yxxhero in #1295
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.23 to
    1.49.24 by @dependabot in #1300
  * feat: bump vals to 0.33.0 by @yxxhero in #1302
  * build(deps): bump github.com/aws/aws-sdk-go from 1.49.24 to
    1.50.0 by @dependabot in #1303
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.0 to
    1.50.1 by @dependabot in #1305
  * Fix the password display problem when passing the chart link
    by @NavesEdu in #1281

OBS-URL: https://build.opensuse.org/request/show/1141197
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/helmfile?expand=0&rev=101
2024-01-24 09:45:06 +00:00

121 lines
4.0 KiB
RPMSpec

#
# spec file for package helmfile
#
# Copyright (c) 2024 SUSE LLC
# 2021-2024 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 430677d43cf4e591aa86a6c24268d02f15f7162a
Name: helmfile
Version: 0.161.0
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 >= 3.13.1
Recommends: helm >= 3.14.0
BuildRequires: golang-packaging
BuildRequires: xz
BuildRequires: golang(API) >= 1.21
Obsoletes: %{name}-bash-completion < %{version}
Obsoletes: %{name}-zsh-completion < %{version}
%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.
%package bash-completion
Summary: Bash Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description bash-completion
Bash command line completion support for %{name}.
%package zsh-completion
Summary: Zsh Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and zsh)
BuildArch: noarch
%description zsh-completion
Zsh command line completion support for %{name}.
%package fish-completion
Summary: Fish Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and fish)
BuildArch: noarch
%description fish-completion
Fish command line completion support for %{name}.
%prep
%setup -qa1
%build
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
go build -mod=vendor -buildmode=pie
%install
. ./source_date_epoch
export SOURCE_DATE_EPOCH
make TAG=v%{version} install
mkdir -p %{buildroot}%{_bindir}
install -m755 ${HOME}/go/bin/helmfile %{buildroot}/%{_bindir}/helmfile
mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions
%{buildroot}/%{_bindir}/helmfile completion bash > %{buildroot}%{_datarootdir}/bash-completion/completions/%{name}
mkdir -p %{buildroot}%{_datarootdir}/zsh_completion.d
%{buildroot}/%{_bindir}/helmfile completion zsh > %{buildroot}%{_datarootdir}/zsh_completion.d/_%{name}
mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d
%{buildroot}/%{_bindir}/helmfile completion fish > %{buildroot}%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
%files
%doc README.md
%license LICENSE
%{_bindir}/helmfile
%files bash-completion
%dir %{_datarootdir}/bash-completion/completions/
%{_datarootdir}/bash-completion/completions/%{name}
%files zsh-completion
%dir %{_datarootdir}/zsh_completion.d/
%{_datarootdir}/zsh_completion.d/_%{name}
%files fish-completion
%dir %{_datarootdir}/fish
%dir %{_datarootdir}/fish/vendor_completions.d
%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
%changelog