From 872c7b08f6e7cde113bd3c15b136722f61b781ee Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Apr 23 2020 14:26:58 +0000 Subject: Pass RPM_BUILD_NCPUS to build scripts Use %_smp_build_ncpus instead of the initial value --- diff --git a/macros.in b/macros.in index 247eddf..9a3ccb8 100644 --- a/macros.in +++ b/macros.in @@ -806,7 +806,8 @@ package or when debugging this package.\ RPM_OPT_FLAGS=\"%{optflags}\"\ RPM_ARCH=\"%{_arch}\"\ RPM_OS=\"%{_os}\"\ - export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS\ + RPM_BUILD_NCPUS=\"%{_smp_build_ncpus}\"\ + export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS\ RPM_DOC_DIR=\"%{_docdir}\"\ export RPM_DOC_DIR\ RPM_PACKAGE_NAME=\"%{NAME}\"\