SHA256
1
0
forked from pool/helmfile
helmfile/helmfile.spec
Manfred Hollstein 62261ee848 Accepting request 1147541 from home:manfred-h:devel:kubic
- Update to version 0.162.0:
  New feature
  * add suppress output line regex support by @yxxhero in #1329
    see more: https://github.com/helmfile/helmfile/blob/v0.162.0/test/integration/test-cases/suppress-output-line-regex/input/helmfile.yaml.gotmpl
  What's Changed
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.1 to
    1.50.2 by @dependabot in #1309
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.2 to
    1.50.3 by @dependabot in #1312
  * feat: document that jsonPatches et al can be files by
    @rsrchboy in #1313
  * build(deps): bump github.com/goccy/go-yaml from 1.11.2 to
    1.11.3 by @dependabot in #1314
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.3 to
    1.50.4 by @dependabot in #1315
  * feat: Bump helm-diff to 3.9.4 by @yxxhero in #1316
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.4 to
    1.50.5 by @dependabot in #1318
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.5 to
    1.50.6 by @dependabot in #1319
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.6 to
    1.50.7 by @dependabot in #1321
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.7 to
    1.50.8 by @dependabot in #1322
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.8 to
    1.50.9 by @dependabot in #1323
  * disable version check for sops while building container
    image by @itscaro in #1320
  * build(deps): bump github.com/helmfile/vals from 0.33.0 to
    0.33.1 by @dependabot in #1325
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.9 to
    1.50.10 by @dependabot in #1324
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.10 to
    1.50.11 by @dependabot in #1328
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.11 to
    1.50.12 by @dependabot in #1330
  * feat: update to use go 1.22 by @chenrui333 in #1332
  * build(deps): bump golang.org/x/term from 0.16.0 to 0.17.0
    by @dependabot in #1334
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.12 to
    1.50.13 by @dependabot in #1333
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.13 to
    1.50.14 by @dependabot in #1336
  * build(deps): bump golangci/golangci-lint-action from 3 to 4
    by @dependabot in #1338
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.14 to
    1.50.15 by @dependabot in #1337
  * build(deps): bump github.com/helmfile/vals from 0.33.1 to
    0.34.1 by @dependabot in #1339
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.15 to
    1.50.17 by @dependabot in #1342
  * build(deps): bump github.com/helmfile/chartify from 0.17.0 to
    0.18.1 by @dependabot in #1341
  * fix: use finer-grained locking when listing releases for diff
    by @steved in #1343
  * run deps without chart preparation by @jouve in #1011
  * build(deps): bump k8s.io/apimachinery from 0.29.1 to 0.29.2
    by @dependabot in #1348
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.17 to
    1.50.18 by @dependabot in #1347
  * build(deps): bump helm.sh/helm/v3 from 3.14.0 to 3.14.1
    by @dependabot in #1346
  * fix: version path issue by @yxxhero in #1344
  * Make it clear that the plugin install prompt is a question
    by @wallrj in #1355
  * Update Helm version to v3.14.1 by @yxxhero in #1352
  * build(deps): bump github.com/aws/aws-sdk-go from 1.50.18 to
    1.50.19 by @dependabot in #1357
  * feat: add suppress output line regex support by @yxxhero
    in #1329
- Use go1.22 for building.

OBS-URL: https://build.opensuse.org/request/show/1147541
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/helmfile?expand=0&rev=103
2024-02-19 09:47:48 +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 9203641f03d3802a59f88178b972a4139001774d
Name: helmfile
Version: 0.162.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.22
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