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