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