-
Notifications
You must be signed in to change notification settings - Fork 7
/
centos-6-i386.cfg
71 lines (59 loc) · 1.99 KB
/
centos-6-i386.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# coding=utf-8
config_opts['root'] = 'centos-6-i386'
config_opts['target_arch'] = 'i686'
config_opts['legal_host_arches'] = ('i386', 'i586', 'i686', 'x86_64')
#config_opts['chroot_setup_cmd'] = 'install buildsys-build coreutils redhat-rpm-config tar'
#config_opts['chroot_setup_cmd'] = 'groupinstall build'
config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils findutils gawk gcc gcc-c++ grep gzip info make patch redhat-release redhat-release-server redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux-ng which xz redhat-rpm-config pkgconfig'
#config_opts['chroot_setup_cmd'] = 'install redhat-rpm-config pkgconfig'
config_opts['dist'] = 'el6' # only useful for --resultdir variable subst
config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
# repos
[base]
name=BaseOS
enabled=1
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=i386&repo=os
baseurl=http://merlin.fit.vutbr.cz/mirrors/centos/6/os/i386/
failovermethod=priority
[updates]
name=updates
enabled=1
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=i386&repo=updates
baseurl=http://merlin.fit.vutbr.cz/mirrors/centos/6/updates/i386/
failovermethod=priority
[cr]
name=CentOS-$releasever - CR
baseurl=http://mirror.centos.org/centos/6/cr/$basearch/
[hrb-stable]
name = hrb
baseurl = http://fs11.vsb.cz/hrb33/el6/hrb/stable/i386/
[local]
name=local
baseurl=file:///srv/repo/
#cost=2000
enabled=0
[rpmforge]
name = rpmforge
mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge
exclude=perl-Getopt-Long
[rpmforge-extras]
name = rpmforge-extras
mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge-extras
exclude=perl-Getopt-Long
"""
config_opts['macros']['%packager']= 'David Hrbáč <david@hrbac.cz>'
config_opts['macros']['%dist']= '.el6.hrb'
config_opts['macros']['centos_ver']= 6
config_opts['macros']['%rhel']= 6
config_opts['macros']['%el6']= 1