Rather than defining the build flags twice in two locations, use the %gobuildflags macro inside the %gobuild macro. Note that this moves the build flags as declared in %gobuild into %gobuildflags (notably enabling the use of ${BUILDTAGS} when using %gobuildflags in a standalone manner as documented in the macro comments). This move will maintain compatibility with any spec file that currently assumes it is able to define $BUILDTAGS before calling %gobuild.
Rather than defining the build flags twice in two locations, use the
%gobuildflagsmacro inside the%gobuildmacro. Note that this moves the build flags as declared in%gobuildinto%gobuildflags(notably enabling the use of${BUILDTAGS}when using%gobuildflagsin a standalone manner as documented in the macro comments). This move will maintain compatibility with any spec file that currently assumes it is able to define$BUILDTAGSbefore calling%gobuild.