chore: set specfile version at build

In [1] I changed the name of the variable used to deduce the version
built. I forgot to update this in the specfile. Let's correct that.

[1]: https://github.com/osbuild/image-builder-cli/pull/230

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
This commit is contained in:
Simon de Vlieger 2025-07-21 09:42:58 +02:00 committed by Achilleas Koutsou
parent 6022e76122
commit 27ad7cb6f0

View file

@ -85,7 +85,7 @@ export GOFLAGS+=" -mod=vendor"
GOTAGS="exclude_graphdriver_btrfs"
%endif
export LDFLAGS="${LDFLAGS} -X 'main.BuildVersion=%{version}'"
export LDFLAGS="${LDFLAGS} -X 'main.version=%{version}'"
%gobuild ${GOTAGS:+-tags=$GOTAGS} -o %{gobuilddir}/bin/image-builder %{goipath}/cmd/image-builder
%install