On Monday 18 January 2010, Clark Williams wrote:
If package build times are your problem, you may want to modify the
make command used by the specfiles. Mock just does what the specfile
says to do (i.e. it just does an rpmbuild), so you might want to add a
'-j16' to the make command line to tell make to manage 16 parallel
builds.
Many packages already pass %{?_smp_mflags} to make (and pretty much all Fedora
packages should, unless there's a problem with it documented in the specfile).
So instead of modifying specfiles, one can do something like this in
/etc/mock/site-defaults.cfg:
config_opts['macros']['%_smp_mflags'] = '-j3'