#!/usr/bin/python -tt import os config_opts['root'] = 'c4-i386-extras' config_opts['basedir'] = '/var/lib/mock/' config_opts['chroot'] = '/usr/sbin/mock-helper chroot' config_opts['mount'] = '/usr/sbin/mock-helper mount' config_opts['umount'] = '/usr/sbin/mock-helper umount' config_opts['rm'] = '/usr/sbin/mock-helper rm' config_opts['mknod'] = '/usr/sbin/mock-helper mknod' config_opts['yum'] = '/usr/sbin/mock-helper yum' config_opts['runuser'] = '/sbin/runuser' config_opts['buildgroup'] = 'build' config_opts['chrootuser'] = 'mockbuild' config_opts['chrootgroup'] = 'mockbuild' config_opts['chrootuid'] = os.geteuid() config_opts['chrootgid'] = os.getegid() config_opts['chroothome'] = '/builddir' config_opts['clean'] = True config_opts['target_arch'] = 'i386' config_opts['yum.conf'] = """ [main] cachedir=/var/cache/yum debuglevel=1 logfile=/var/log/yum.log reposdir=/dev/null retries=20 obsoletes=1 gpgcheck=0 assumeyes=1 # repos [base] name=base baseurl=http://mirror.centos.org/centos/4/os/i386/ [updates] name=updates baseurl=http://mirror.centos.org/centos/4/updates/i386/ [Extras] name=FExtras baseurl=http://centos.karan.org/el4/extras/stable/i386/RPMS/ # The Just build repo is hosted locally on the machine # packages 'just built' are hosted in there, so that pkgs down the build order # will link against the right versions [Just Built] name=C4_Extras_JustBuilt baseurl=http://localhost/repo/WIP_Extras/ [groups] name=groups baseurl=http://www.karan.org/mock/EL4/i386/ """ config_opts['macros'] = """ %_topdir /builddir/build %_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm # Change the next two lines to reflect yourself. %packager Karanbir Singh %vendor http://www.karan.org/ # please change this to reflect the Distro Tree and Repo hosting packages! %dist .el4.MyPkg # Hammer the machine down a bit - but known to cause problems with some perl- and lib- packages # %_smp_mflags -j3 """