f6faf3
From d97d7b71de158660eb96b4f11d40b6626b85521a Mon Sep 17 00:00:00 2001
f6faf3
From: Florian Festi <ffesti@redhat.com>
f6faf3
Date: Tue, 16 Apr 2019 09:50:57 +0200
f6faf3
Subject: [PATCH] Pass RPM_BUILD_NCPUS to build scripts
f6faf3
f6faf3
Use %_smp_build_ncpus instead of the initial value
f6faf3
---
f6faf3
 macros.in | 3 ++-
f6faf3
 1 file changed, 2 insertions(+), 1 deletion(-)
f6faf3
f6faf3
diff --git a/macros.in b/macros.in
f6faf3
index fc587997d..a15e46f26 100644
f6faf3
--- a/macros.in
f6faf3
+++ b/macros.in
f6faf3
@@ -807,7 +807,8 @@ package or when debugging this package.\
f6faf3
   RPM_OPT_FLAGS=\"%{optflags}\"\
f6faf3
   RPM_ARCH=\"%{_arch}\"\
f6faf3
   RPM_OS=\"%{_os}\"\
f6faf3
-  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS\
f6faf3
+  RPM_BUILD_NCPUS=\"%{_smp_build_ncpus}\"\
f6faf3
+  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS\
f6faf3
   RPM_DOC_DIR=\"%{_docdir}\"\
f6faf3
   export RPM_DOC_DIR\
f6faf3
   RPM_PACKAGE_NAME=\"%{NAME}\"\
f6faf3
-- 
f6faf3
2.21.0
f6faf3