Vincent Danen <[EMAIL PROTECTED]> writes:

> On Tue Apr 10, 2001 at 12:53:13AM -0400, Yura Gusev wrote:
> 
> > 
> > Can you plz remove %make ... from your SRPMs spec files (ex db1)
> > and change it to make or it wont compile. (i used RPM version 4.0.2);
> > 
> > http://www.rpmhelp.net/lists/rpmhelp/0015.html
> 
> That's only valid for older distributions.  If you're using cooker,
> you can do:
> 
> rpm --eval %make
> 
> and it should spit out the contents of the macro.  This also works
> under Mandrake 7.2, so the %make macro doesn't work under 7.1 and
> earlier I believe.

or put that in your ~/.rpmmacros :

%_make_bin make
%make if [ -z "$NPROCS" -a -f /proc/stat ]; then NPROCS=`egrep -c ^cpu[0-9]+ 
/proc/stat || :`; fi \
if [ -z "$NPROCS" -o "$NPROCS" -le "0" ]; then \
  NPROCS=1 \
fi \
%{_make_bin} -j$NPROCS

FYI: last upstream rpm include it by default.

-- 
MandrakeSoft Inc                     http://www.chmouel.org
                      --Chmouel

Reply via email to