From eb3bfa298075d91191330ce836f101856016881ef12780860902d4044c245fb0 Mon Sep 17 00:00:00 2001 From: Manfred Hollstein Date: Tue, 21 Jul 2020 13:16:49 +0000 Subject: [PATCH] Accepting request 821531 from home:manfred-h - Install program using "make install" to ensure it knows its version number when called with "--version". OBS-URL: https://build.opensuse.org/request/show/821531 OBS-URL: https://build.opensuse.org/package/show/devel:kubic/helmfile?expand=0&rev=2 --- helmfile.changes | 6 ++++++ helmfile.spec | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/helmfile.changes b/helmfile.changes index 30cd541..885ba07 100644 --- a/helmfile.changes +++ b/helmfile.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jul 17 12:24:42 UTC 2020 - Manfred Hollstein + +- Install program using "make install" to ensure it knows its version + number. + ------------------------------------------------------------------- Fri Jul 17 11:54:50 UTC 2020 - Manfred Hollstein diff --git a/helmfile.spec b/helmfile.spec index e314a6a..b1324e0 100644 --- a/helmfile.spec +++ b/helmfile.spec @@ -50,8 +50,9 @@ delegates to helm - as a result, helm must be installed. go build -mod=vendor -buildmode=pie %install +make TAG=%{version} install mkdir -p %{buildroot}%{_bindir} -install -m755 helmfile %{buildroot}/%{_bindir}/helmfile +install -m755 ${HOME}/go/bin/helmfile %{buildroot}/%{_bindir}/helmfile %files %doc README.md