helmfile/helmfile.spec
Manfred Hollstein 8b3af54e4a Accepting request 1084737 from home:manfred-h:devel:kubic
- Update to version 0.153.1:
  What's Changed:
  * Properly emulated arm64 Docker builds by @lavifb in #826
- Update to version 0.153.0:
  What's Changed:
  * build(deps): bump go.uber.org/multierr from 1.10.0 to 1.11.0
    by @dependabot in #772
  * feat: add/expose cli flags by @hans-m-song in #771
  * build(deps): bump github.com/goccy/go-yaml from 1.10.1 to
    1.11.0 by @dependabot in #778
  * Bump github.com/helmfile/vals by @jkroepke in #781
  * build(deps): bump github.com/spf13/cobra from 1.6.1 to 1.7.0
    by @dependabot in #783
  * build(deps): bump github.com/docker/docker from
    20.10.21+incompatible to 20.10.24+incompatible by @dependabot
    in #784
  * Update USERS.md by @AndreiBrandes in #777
  * build(deps): bump golang.org/x/term from 0.6.0 to 0.7.0 by
    @dependabot in #789
  * build(deps): bump github.com/Masterminds/semver/v3 from 3.2.0
    to 3.2.1 by @dependabot in #796
  * Documentation updated about kubeVersion field by @Edu-DevOps
    in #797
  * build(deps): bump k8s.io/apimachinery from 0.26.3 to 0.27.0
    by @dependabot in #801
  * bump helm to v3.11.3 by @yxxhero in #802
  * fix: ValuesTemplate quote issue by @yxxhero in #787
  * feat: add duration to affected releases on sync by @AlexAxenti
    in #773
  * Add kube version flag by @FeLvi-zzz in #804
  * bump vals to v0.25.0 by @stoned in #808
  * build(deps): bump k8s.io/apimachinery from 0.27.0 to 0.27.1 by
    @dependabot in #810
  * Add documentation on internal environment variables by @voron
    in #811
  * Doc fixes by @stoned in #812
  * Fix inherit examples following #674 by @stoned in #815
  * Fix Markdown rendering of indented code blocks by @stoned
    in #814
  * Uniformize usage message by @stoned in #813
  * Build correct arch for container image by @lavifb in #817
  * Fix depedency binaries for arm64 builds by @lavifb in #820
  * chore(release): fix condition for latest tag by @rmoreas
    in #823

OBS-URL: https://build.opensuse.org/request/show/1084737
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/helmfile?expand=0&rev=82
2023-05-04 14:19:29 +00:00

72 lines
2.3 KiB
RPMSpec

#
# spec file for package helmfile
#
# Copyright (c) 2023 SUSE LLC
# 2021 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 b7233d12388f8b924b5147b7a2545a8272cc2ab8
Name: helmfile
Version: 0.153.1
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.11.1
Recommends: helm >= 3.11.2
BuildRequires: golang-packaging
BuildRequires: xz
BuildRequires: golang(API) >= 1.19
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.
%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
%files
%doc README.md
%license LICENSE
%{_bindir}/helmfile
%changelog