#!/usr/bin/python -tt import os config_opts['root'] = 'centos-5-i386' 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 [os] name=os mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os baseurl=http://mirror.centos.org/centos/5/os/i386/ #baseurl=file:///home/rsiddall/mock/repos/centos/5/os/i386/ [updates] name=updates mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates baseurl=http://mirror.centos.org/centos/5/updates/i386/ #baseurl=file:///home/rsiddall/mock/repos/centos/5/updates/i386/ [groups] name=groups baseurl=http://dev.centos.org/centos/buildsys/5/ """ config_opts['macros'] = """ %_topdir /builddir/build %_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm # Change the next two lines to reflect yourself. %packager Freeside Internet Services, Inc. #%vendor #%distribution # please change this to reflect the Distro Tree and Repo hosting packages! #%dist . %centos_ver 5 #%_smp_mflags -j1 """