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

There's no need to do a build just for this.
This commit is contained in:
Debarshi Ray 2023-02-21 17:15:21 +01:00
parent ecc081de3e
commit 5e28822115

View File

@ -168,7 +168,7 @@ The %{name}-tests package contains system tests for %{name}.
%build %build
export GO111MODULE=off export %{gomodulesmode}
export GOPATH=%{gobuilddir}:%{gopath} export GOPATH=%{gobuilddir}:%{gopath}
export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
ln -s src/cmd cmd ln -s src/cmd cmd