From Fedora Project Wiki
< CallumLerwick | MockHacking
import os config_opts['root'] = 'fedora-5-x86_64-core' 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 build-minimal build-base local' 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'] = 'x86_64' config_opts['yum.conf'] = """ [main] cachedir=/var/cache/yum keepcache=1 debuglevel=1 reposdir=/dev/null logfile=/var/log/yum.log pkgpolicy=newest retries=20 obsoletes=1 gpgcheck=0 metadata_expire=1800 assumeyes=1 tsflags=nodocs exclude=*.i386 *.486 *.586 *.i686 *.athlon #proxy=http://hostname:8080/ [groups-x86_64] name=Buildgroups x86_64 baseurl=http://fedoraproject.org/buildgroups/5/x86_64/ [core-x86_64] name=Fedora Core x86_64 baseurl=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/x86_64/os/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY [updates-x86_64] name=Fedora Core Updates x86_64 baseurl=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/updates/5/x86_64/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY [extras-x86_64] name=Fedora Extras x86_64 baseurl=http://redhat.download.fedoraproject.org/pub/fedora/linux/extras/5/x86_64/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras [local-noarch] name=local x86_64 baseurl=file:///storage/localrpms/noarch/ enabled=1 [local-x86_64] name=local x86_64 baseurl=file:///storage/localrpms/x86_64/ enabled=1 """