Use %gomodulesmode introduced in go-rpm-macros-3.0.10

There's no need to do a build just for this.

Resolves: #2165742
This commit is contained in:
Debarshi Ray 2023-04-03 19:26:04 +02:00
parent 8c0c8e65c3
commit fe04830ffe
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ cd "$GOBUILDDIR/src/%{goipath}"
%build
export GO111MODULE=off
export %{gomodulesmode}
GOBUILDDIR="$(pwd)/_build"
export GOPATH="$GOBUILDDIR:%{gopath}"
export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"