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