Update macros

This commit is contained in:
2025-12-31 14:37:21 +08:00
parent 386d48352f
commit 52ac6c5c0a

View File

@@ -12,6 +12,12 @@
export GOPATH=%{_builddir}/go:%{_datadir}/gocode \
%{nil}
#
# Test flags
#
%go_test_flags_default -v
%go_test_flags %{go_test_flags_default}%{?buildoption_test: %{buildoption_test}}
#
# BuildSystem flags
#
@@ -26,6 +32,7 @@
%__go build -v -o %{_name} . \
%{nil}
%go_install \
%__install -D -m 0755 %{_name} %{buildroot}%{_bindir}/%{_name} \
%{nil}
@@ -38,10 +45,10 @@
%go_test \
%{go_common} \
cd %{_builddir}/go/src/%{go_import_path} \
%__go test -vet=off -v ./... \
%__go test %{go_test_flags} ./... \
%{nil}
%go_test_modules \
%{go_common} \
%__go test -vet=off -v ./... \
%__go test %{go_test_flags} ./... \
%{nil}