Update macros

This commit is contained in:
2025-12-31 15:09:53 +08:00
parent 93c22768f6
commit 4f976051e5

View File

@@ -2,10 +2,10 @@
%buildsystem_cmake_conf() %nil
%buildsystem_golang_build() %go_build %*
%buildsystem_golang_install() %{expand:\\\
%__install -D -m 0755 %{_name} %{buildroot}%{_bindir}/%{_name} \\\
%__install -D -m 0755 %{_name} %{buildroot}%{_bindir}/%{_name}
}
%buildsystem_golang_check() %{expand:\\\
%{go_common} \\\
cd %{_builddir}/go/src/%{go_import_path} \\\
%__go test %{shrink:%{go_test_flags_default} %*} ./... \\\
%{go_common}
cd %{_builddir}/go/src/%{go_import_path}
%__go test %{shrink:%{go_test_flags_default} %*} ./...
}