SHA256
1
0
forked from pool/helmfile
helmfile/helmfile.spec
Manfred Hollstein b54871e813 - Update to version 0.168.0:
* chore: enhance TopKeys function & adding test cases for malformed
    lines scenario in TopKeys func by @zhaque44 in #1654
  * build(deps): bump golang.org/x/sync from 0.7.0 to 0.8.0 by
    @dependabot in #1655
  * feat: add isDir template function by @simonsystem in #1657
  * build(deps): bump golang.org/x/term from 0.22.0 to 0.23.0 by
    @dependabot in #1658
  * build(deps): bump github.com/docker/docker from 27.1.0+incompatible
    to 27.1.1+incompatible by @dependabot in #1662
  * build(deps): update Helm version to v3.15.4 by @yxxhero in #1668
  * build(deps): bump github.com/hashicorp/go-getter from 1.7.5 to
    1.7.6 by @dependabot in #1666
  * build(deps): bump k8s.io/apimachinery from 0.30.3 to 0.31.0 by
    @dependabot in #1665
  * fix: CI linting issues with dockerfiles by @zhaque44 in #1671
  * chore: update dockerfile based on CI warnings by @zhaque44 in #1675
  * fix: _*.tpl files add whitespace to empty Namespace by
    @chrisdoherty4 in #1674
  * Add RightCapital to USERS.md by @yinheli in #1676
  * feat: update kustomize version by @zhaque44 in #1677
  * build(deps): bump github.com/hashicorp/hcl/v2 from 2.21.0 to
    2.22.0 by @dependabot in #1679
  * feat: adding ability for for charts to be pulled with plain HTTP
    by @ennekein in #1672
  * feat: skip chart prep for local by @zhaque44 in #1681
  * build(deps): bump github.com/Masterminds/semver/v3 from 3.2.1 to
    3.3.0 by @dependabot in #1683
  * build(deps): bump github.com/Masterminds/sprig/v3 from 3.2.3 to
    3.3.0 by @dependabot in #1684
  * feat: upgrade to k8s version to a supported version for security
    compliance by @zhaque44 in #1686
  * feat: upgrade helm-diff plugin version to 3.9.10 by @yxxhero
    in #1688
  * feat: fix password registry leak of credentials by @zhaque44
    in #1687
  * fix verify stage for helmfile when use oci as chart by @yxxhero
    in #1661
  * feat: update golang minor version based on security vulnerability
    by @zhaque44 in #1690
  * build(deps): bump golang.org/x/term from 0.23.0 to 0.24.0 by
    @dependabot in #1689
  * feat: bump chartify versions by @yxxhero in #1693
  * optimize code by @Peoplelike in #1694
  * chore: Update Ubuntu image to LTS version 24.04 by @pathob
    in #1696
  * Fixed typo in configuration section by @vedrankolka in #1698
  * build(deps): bump github.com/helmfile/vals from 0.37.3 to 0.37.5
    by @dependabot in #1700
  * chore: add table driven tests for clarity by @zhaque44 in #1702
  * fix: two releases using the same chart in different version
    fails by @yxxhero in #1685

OBS-URL: https://build.opensuse.org/package/show/devel:kubic/helmfile?expand=0&rev=119
2024-09-13 07:02:28 +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 18529ab7c550bfa6d6eefddeb47418f1685f4a7f
Name: helmfile
Version: 0.168.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