]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
increment jobs for > 3 cpus auto/th/rpm-build-macros-1.661-2 auto/ti/rpm-build-macros-1.661-2
authorElan Ruusamäe <glen@delfi.ee>
Thu, 18 Apr 2013 09:07:31 +0000 (12:07 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 18 Apr 2013 09:08:07 +0000 (12:08 +0300)
it's because 3/2 -> 1

rpm.macros

index 351e41adf388268f87923b6d2fddfc27e2bebe20..3bcd3c543f5b34ce2350594d4904521c33196dd5 100644 (file)
@@ -30,7 +30,7 @@
 #
 # if you want to disable parallel build do:
 # echo '%__jobs %{nil}' >> ~/.rpmmacros
-%__jobs                %{expand:%%global __jobs %(_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN); [ "$_NCPUS" -gt 2 ] && echo $(($_NCPUS / 2)))%%{nil}}%__jobs
+%__jobs                %{expand:%%global __jobs %(_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN); [ "$_NCPUS" -gt 3 ] && echo $(($_NCPUS / 2)))%%{nil}}%__jobs
 
 # expands to -jN if %__jobs has a value
 %_smp_mflags   %{expand:%%global _smp_mflags %(jobs=%{__jobs}; echo ${jobs:+-j$jobs}%%{nil})}%_smp_mflags
This page took 0.101963 seconds and 4 git commands to generate.