]> git.pld-linux.org Git - packages/VirtualBox.git/commitdiff
- build with system kBuild, enable parallel build
authorElan Ruusamäe <glen@delfi.ee>
Sun, 25 Nov 2012 17:41:13 +0000 (19:41 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 25 Nov 2012 17:41:13 +0000 (19:41 +0200)
VirtualBox.spec

index 906016f037f5f6259b8aa0fe62b6e910d2505d7f..257d8ec6f616187f861515972adc63bb4f699a1c 100644 (file)
@@ -102,6 +102,7 @@ BuildRequires:      curl-devel
 %{?with_doc:BuildRequires:     docbook-dtd44-xml}
 BuildRequires: gcc >= 5:3.2.3
 %{?with_webservice:BuildRequires:      gsoap-devel}
+BuildRequires: kBuild >= 0.1.9998-2
 BuildRequires: libIDL-devel
 BuildRequires: libcap-static
 BuildRequires: libdrm-devel
@@ -529,6 +530,9 @@ cd -
 %patch10 -p1
 %patch11 -p1
 
+# using system kBuild package
+%{__rm} -r kBuild
+
 %build
 %if %{with userspace}
 echo "VBOX_WITH_TESTCASES := " > LocalConfig.kmk
@@ -544,8 +548,7 @@ echo "VBOX_WITH_TESTCASES := " > LocalConfig.kmk
        %{nil}
 
 XSERVER_VERSION=$(rpm -q --queryformat '%{VERSION}\n' xorg-xserver-server-devel | awk -F. ' { print $1 $2 } ' 2> /dev/null || echo ERROR)
-. ./env.sh && \
-kmk -j1 \
+kmk %{?_smp_mflags} \
        %{?with_verbose:KBUILD_VERBOSE=3} \
        USER=%(id -un) \
        VBOX_VERSION_STRING='$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)'_PLD \
This page took 0.034972 seconds and 4 git commands to generate.