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:
parent
ecc081de3e
commit
5e28822115
@ -168,7 +168,7 @@ The %{name}-tests package contains system tests for %{name}.
|
||||
|
||||
|
||||
%build
|
||||
export GO111MODULE=off
|
||||
export %{gomodulesmode}
|
||||
export GOPATH=%{gobuilddir}:%{gopath}
|
||||
export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
ln -s src/cmd cmd
|
||||
|
Loading…
Reference in New Issue
Block a user