32 bit and make the repo stuff work, RT#8190
[freeside.git] / rpm / build / mock / centos-5-i386.cfg
1 #!/usr/bin/python -tt
2 import os
3 config_opts['root'] = 'centos-5-i386'
4 config_opts['target_arch'] = 'i386'
5
6 config_opts['cleanup_on_failure'] = 0
7
8 config_opts['chroot_setup_cmd'] = 'install buildsys-build'
9
10 # caching related options                                                       
11 #these are probably obsolete?
12 config_opts['rebuild_cache'] = False
13 #config_opts['use_cache'] = False
14 config_opts['use_cache'] = True
15 config_opts['pack_cmd'] = "/usr/sbin/mock-helper pack"
16 config_opts['unpack_cmd'] = "/usr/sbin/mock-helper unpack"
17 config_opts['cache_ext'] = ".tar.gz"
18 config_opts['cache_topdir'] = "/var/cache/mock"
19 #config_opts['max_cache_age_days'] = 15
20 config_opts['max_cache_age_days'] = 150
21
22 # config_opts['plugin_conf']['ccache_enable'] = True
23 config_opts['plugin_conf']['ccache_enable'] = False
24 # config_opts['plugin_conf']['ccache_opts']['max_cache_size'] = '4G'
25 # config_opts['plugin_conf']['ccache_opts']['dir'] = "%(cache_topdir)s/%(root)s/ccache/"
26 config_opts['plugin_conf']['yum_cache_enable'] = True
27 config_opts['plugin_conf']['yum_cache_opts']['max_age_days'] = 30
28 config_opts['plugin_conf']['yum_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/yum_cache/"
29 config_opts['plugin_conf']['root_cache_enable'] = True
30 config_opts['plugin_conf']['root_cache_opts']['max_age_days'] = 15
31 config_opts['plugin_conf']['root_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/root_cache/"
32 config_opts['plugin_conf']['root_cache_opts']['compress_program'] = "gzip"
33 config_opts['plugin_conf']['root_cache_opts']['extension'] = ".gz"
34
35
36 config_opts['yum.conf'] = """
37
38 [main]
39 cachedir=/var/cache/yum
40 debuglevel=1
41 reposdir=/dev/null
42 logfile=/var/log/yum.log
43 retries=20
44 obsoletes=1
45 gpgcheck=0
46 assumeyes=1
47
48 # repos
49
50 [os]
51 name=os
52 mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
53 baseurl=http://mirror.centos.org/centos/5/os/i386/
54 #baseurl=file:///home/rsiddall/mock/repos/centos/5/os/i386/
55
56 [updates]
57 name=updates
58 mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates
59 baseurl=http://mirror.centos.org/centos/5/updates/i386/
60 #baseurl=file:///home/rsiddall/mock/repos/centos/5/updates/i386/
61
62 [groups]
63 name=groups
64 baseurl=http://dev.centos.org/centos/buildsys/5/
65
66 """
67
68 #something here is causing a problem, don't know what, see if we need anything
69 #config_opts['macros'] = """
70 #%_topdir /builddir/build
71 #%_rpmfilename  %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
72 #
73 ## Change the next two lines to reflect yourself.
74 #
75 #%packager  Freeside Internet Services, Inc. <rpm@freeside.biz>
76 ##%vendor   
77 ##%distribution 
78 #
79 ## please change this to reflect the Distro Tree and Repo hosting packages!
80 ##%dist    <distro>.<yourtag> 
81 #%centos_ver     5
82 #
83 ##%_smp_mflags   -j1
84 #
85 #"""
86
87