dcavalca / rpms / rpm

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