Initial commit
[ta/rpmbuilder.git] / defaults / epel-7-x86_64.cfg
1 # Root name to be used for chroot and caching, must differ between products
2 config_opts['root'] = 'epel-7-x86_64'
3
4 config_opts['target_arch'] = 'x86_64'
5 config_opts['legal_host_arches'] = ('x86_64',)
6 config_opts['dist'] = 'el7'  # only useful for --resultdir variable subst
7 config_opts['chroot_setup_cmd'] = 'install createrepo yum-utils bison byacc cscope ctags cvs diffstat doxygen flex gcc gcc-c++ gcc-gfortran gettext git indent intltool libtool patch patchutils rcs redhat-rpm-config rpm-build subversion swig systemtap sudo'
8 config_opts['plugin_conf']['yum_cache_enable'] = False
9 config_opts['plugin_conf']['ccache_enable'] = False
10 config_opts['plugin_conf']['ccache_opts']['max_cache_size'] = '1G'
11 config_opts['plugin_conf']['ccache_opts']['dir'] = "/dev/shm/ccache.epel-7/"
12 config_opts['rpmbuild_networking'] = True
13 config_opts['cleanup_on_success'] = True
14 config_opts['cleanup_on_failure'] = False
15 config_opts['exclude_from_homedir_cleanup'] = ('build/SOURCES', '.bash_history', '.bashrc', 'build/RPMS', )
16
17 # Common RPM directive values
18 config_opts['macros']['%_platform_vendor']="My Product"
19 config_opts['macros']['%_platform_licence']="ASL 2.0"
20
21 # Product specific macros
22 config_opts['macros']['%_platform_root_path']   = "/opt/product"
23
24 # Compilation
25 #config_opts['macros']['%_smp_mflags'] = "-j6"
26 #config_opts['macros']['%_smp_ncpus_max'] = 0
27
28 # Yum configuration
29 config_opts['yum.conf'] = """
30 [main]
31 cachedir=/var/cache/yum
32 keepcache=1
33 debuglevel=2
34 reposdir=/dev/null
35 logfile=/var/log/yum.log
36 retries=20
37 obsoletes=1
38 gpgcheck=0
39 assumeyes=1
40 syslog_ident=mock
41 syslog_device=
42
43 # RPM repositories for yum
44 [internal-epel-mirror]
45 name=internal-epel-mirror
46 baseurl=http://intranet.mycompany.org/mirrors/EPEL/7/$basearch/
47 enabled=0
48 metadata_expire=7d
49 gpgcheck=0
50
51 [local]
52 name=local repository
53 baseurl=file:///usr/localrepo/
54 enabled=1
55 gpgcheck=0
56 protect=1
57 priority=10
58 skip_if_unavailable=True
59
60 """