#epel5 is EOLed, neither updates nor fixes are released
config_opts['root'] = 'epel-5-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
config_opts['chroot_setup_cmd'] = 'install buildsys-build buildsys-macros'
config_opts['dist'] = 'el5'  # only useful for --resultdir variable subst
if 'macros' not in config_opts:  config_opts['macros'] = {}
config_opts['macros']['%__arch_install_post'] = '%{nil}'
# beware: RHEL uses 5Server or 5Client
config_opts['releasever'] = '5'

config_opts['yum.conf'] = """
[main]
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
reposdir=/dev/null
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
mdpolicy=group:primary
best=1

# repos

[core]
name=base
baseurl=http://vault.centos.org/5.11/os/x86_64/
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-5
gpgcheck=1
skip_if_unavailable=False

[update]
name=updates
baseurl=http://vault.centos.org/5.11/updates/x86_64/
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-5
gpgcheck=1
skip_if_unavailable=False

[groups]
name=groups
baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel5/x86_64/

[epel]
name=epel
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=x86_64
gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-5
gpgcheck=1
skip_if_unavailable=False

[epel-debuginfo]
name=epel-debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=x86_64
failovermethod=priority
enabled=0
skip_if_unavailable=False
"""
