From 729205a5a8d44948e00c9222937752672e930912 Mon Sep 17 00:00:00 2001 From: pmmccorm Date: Fri, 23 Jan 2015 08:41:09 -0800 Subject: [PATCH] Don't define buildroot. All modern rpmbuilds define this automatically. Pass make -j flags when compiling modules. --- compat-rdma.spec | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/compat-rdma.spec b/compat-rdma.spec index 8b22daf..e3b0dd1 100755 --- a/compat-rdma.spec +++ b/compat-rdma.spec @@ -93,7 +93,6 @@ License: GPLv2 or BSD Url: http://openfabrics.org/ Group: System Environment/Base Source: %{_name}-%{_version}.tgz -BuildRoot: %{?build_root:%{build_root}}%{!?build_root:/var/tmp/OFED} Vendor: OpenFabrics Requires: coreutils Requires: kernel @@ -150,7 +149,7 @@ if [ -f /usr/local/include/scst/Module.symvers ]; then fi %endif export INSTALL_MOD_DIR=updates -make kernel +make %{?_smp_flags} kernel %install mkdir -p $RPM_BUILD_ROOT/%{_prefix}/src @@ -260,9 +259,7 @@ install -d $RPM_BUILD_ROOT/etc/udev/rules.d install -m 0644 $RPM_BUILD_DIR/%{_name}-%{_version}/ofed_scripts/90-ib.rules $RPM_BUILD_ROOT/etc/udev/rules.d %clean -#Remove installed driver after rpm build finished -rm -rf $RPM_BUILD_ROOT -rm -rf $RPM_BUILD_DIR/%{_name}-%{_version} +rm -rf %{buildroot} %pre -- 2.46.0