helmfile/helmfile.spec
Manfred Hollstein 2c2c00a98b - Update to version 0.171.0:
* feat: execute templates against postRendererHooks by @allanger
    in #1839
  * build(deps): bump github.com/spf13/pflag from 1.0.5 to 1.0.6
    by @dependabot in #1897
  * build(deps): bump github.com/goccy/go-yaml from 1.15.15 to
    1.15.16 by @dependabot in #1901
  * build(deps): bump github.com/goccy/go-yaml from 1.15.16 to
    1.15.17 by @dependabot in #1905
  * Use a regex to match --state-values-set-string arguments
    by @gllb in #1902
  * build(deps): bump golang.org/x/sync from 0.10.0 to 0.11.0
    by @dependabot in #1911
  * Chartify v0.20.8 update by @scodeman in #1908
  * cleanup: remove all about v0.x by @yxxhero in #1903
  * build(deps): bump golang.org/x/term from 0.28.0 to 0.29.0
    by @dependabot in #1913
  * chore: update babel to resolve CVEs by @zhaque44 in #1916
  * remove deprecated charts.yaml by @yxxhero in #1437
  * Revert "cleanup: remove all about v0.x" by @yxxhero in #1918
  * build(deps): bump github.com/goccy/go-yaml from 1.15.17 to
    1.15.19 by @dependabot in #1920
  * build(deps): bump github.com/goccy/go-yaml from 1.15.19 to
    1.15.20 by @dependabot in #1921
  * feat: Add support for --wait-retries flag. by @connyay in #1922
  * build: update go-yaml to v1.15.21 by @yxxhero in #1923

OBS-URL: https://build.opensuse.org/package/show/devel:kubic/helmfile?expand=0&rev=131
2025-02-13 09:13:21 +00:00

121 lines
4.0 KiB
RPMSpec

#
# spec file for package helmfile
#
# Copyright (c) 2025 SUSE LLC
# 2021-2025 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 41d8070b85e461505cc8eb3ad6ca1e75e44c3936
Name: helmfile
Version: 0.171.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.3
BuildRequires: golang-packaging
BuildRequires: xz
BuildRequires: golang(API) >= 1.23
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