From 05ba2ee810842bbe8333e70d3c6bd6217378698d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 20 Aug 2009 13:37:11 +0200 Subject: packaging(RHEL-CTDB): enable parallel build Michael --- packaging/RHEL-CTDB/samba.spec.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/RHEL-CTDB/samba.spec.tmpl b/packaging/RHEL-CTDB/samba.spec.tmpl index 88cfe01e19..48b2c5c4b9 100644 --- a/packaging/RHEL-CTDB/samba.spec.tmpl +++ b/packaging/RHEL-CTDB/samba.spec.tmpl @@ -43,6 +43,7 @@ BuildRequires: pam-devel, readline-devel, fileutils, libacl-devel, openldap-deve %define _libarchdir /usr/%{_libarch} +%define numcpu %(grep "^processor" /proc/cpuinfo |wc -l | sed -e 's/^0$/1/') %description Samba is the protocol by which a lot of PC-related machines share @@ -200,7 +201,7 @@ if [ ${CC_MAJOR} -ge 3 ]; then fi fi -make %{?_smp_mflags} \ +make -j%{numcpu} %{?_smp_mflags} \ nss_modules pam_modules rm -rf %{_32bit_tmp_dir} @@ -266,7 +267,7 @@ if [ ${CC_MAJOR} -ge 3 ]; then fi -make %{?_smp_mflags} \ +make -j %{numcpu} %{?_smp_mflags} \ all modules pam_smbpass # Remove some permission bits to avoid to many dependencies -- cgit