From 2809d3619fe4a9812b44c6132316d6df21aa515e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 3 Feb 2012 13:19:02 +0000 Subject: [PATCH] - 1.640 - don't hog twice the cpus for make jobs, it's overkill esp. for c++ jobs, instaead use half of cpus by default Changed files: rpm-build-macros.spec -> 1.320 rpm.macros -> 1.640 --- rpm-build-macros.spec | 4 ++-- rpm.macros | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rpm-build-macros.spec b/rpm-build-macros.spec index 384c5e6..65cfba4 100644 --- a/rpm-build-macros.spec +++ b/rpm-build-macros.spec @@ -1,10 +1,10 @@ -%define rpm_macros_rev 1.639 +%define rpm_macros_rev 1.640 %define find_lang_rev 1.35 Summary: PLD Linux RPM build macros Summary(pl.UTF-8): Makra do budowania pakietów RPM dla Linuksa PLD Name: rpm-build-macros Version: %{rpm_macros_rev} -Release: 2 +Release: 1 License: GPL Group: Development/Building Source0: rpm.macros diff --git a/rpm.macros b/rpm.macros index 4fc0798..08bcc8f 100644 --- a/rpm.macros +++ b/rpm.macros @@ -37,7 +37,7 @@ %__cmake /usr/bin/cmake %_smp_mflags %(_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN); \\\ - [ "$_NCPUS" -gt 1 ] && echo "-j$(($_NCPUS * 2))") + [ "$_NCPUS" -gt 2 ] && echo "-j$(($_NCPUS / 2))") %__gettextize { \ if grep -qs 'AM_GNU_GETTEXT.*external' configure.{ac,in} ; then \ -- 2.43.0