X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rpm%2Fbuild%2Fmock%2Fcentos-5-x86_64.cfg;h=1741369093c05463a014f162c400bd3464e1880a;hp=448edc682164db39d643e3793289c6e23515bfcc;hb=115d17b7a091bd92d4c8073fdfaba5a69420bcf3;hpb=b80e996959d9492e07ada4936e566f4b97dd5808 diff --git a/rpm/build/mock/centos-5-x86_64.cfg b/rpm/build/mock/centos-5-x86_64.cfg index 448edc682..174136909 100644 --- a/rpm/build/mock/centos-5-x86_64.cfg +++ b/rpm/build/mock/centos-5-x86_64.cfg @@ -4,8 +4,38 @@ import os config_opts['root'] = 'centos-5-x86_64' config_opts['target_arch'] = 'x86_64' +config_opts['cleanup_on_failure'] = 0 + +config_opts['chroot_setup_cmd'] = 'install buildsys-build' + +# caching related options +#these are probably obsolete? +config_opts['rebuild_cache'] = False +#config_opts['use_cache'] = False +config_opts['use_cache'] = True +config_opts['pack_cmd'] = "/usr/sbin/mock-helper pack" +config_opts['unpack_cmd'] = "/usr/sbin/mock-helper unpack" +config_opts['cache_ext'] = ".tar.gz" +config_opts['cache_topdir'] = "/var/cache/mock" +#config_opts['max_cache_age_days'] = 15 +config_opts['max_cache_age_days'] = 150 + +# config_opts['plugin_conf']['ccache_enable'] = True +config_opts['plugin_conf']['ccache_enable'] = False +# config_opts['plugin_conf']['ccache_opts']['max_cache_size'] = '4G' +# config_opts['plugin_conf']['ccache_opts']['dir'] = "%(cache_topdir)s/%(root)s/ccache/" +config_opts['plugin_conf']['yum_cache_enable'] = True +config_opts['plugin_conf']['yum_cache_opts']['max_age_days'] = 30 +config_opts['plugin_conf']['yum_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/yum_cache/" +config_opts['plugin_conf']['root_cache_enable'] = True +config_opts['plugin_conf']['root_cache_opts']['max_age_days'] = 15 +config_opts['plugin_conf']['root_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/root_cache/" +config_opts['plugin_conf']['root_cache_opts']['compress_program'] = "gzip" +config_opts['plugin_conf']['root_cache_opts']['extension'] = ".gz" + config_opts['yum.conf'] = """ + [main] cachedir=/var/cache/yum debuglevel=1 @@ -20,38 +50,39 @@ exclude=[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz]*.i*86 g[abcdefghij [os] name=os -#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os -#baseurl=http://mirror.centos.org/centos/5/os/x86_64/ -baseurl=file:///home/rsiddall/mock/repos/centos/5/os/x86_64/ +mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os +baseurl=http://mirror.centos.org/centos/5/os/x86_64/ +#baseurl=file:///home/rsiddall/mock/repos/centos/5/os/x86_64/ [updates] name=updates -#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=updates -#baseurl=http://mirror.centos.org/centos/5/updates/x86_64/ -baseurl=file:///home/rsiddall/mock/repos/centos/5/updates/x86_64/ +mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=updates +baseurl=http://mirror.centos.org/centos/5/updates/x86_64/ +#baseurl=file:///home/rsiddall/mock/repos/centos/5/updates/x86_64/ [groups] name=groups baseurl=http://dev.centos.org/centos/buildsys/5/ """ - -config_opts['macros'] = """ -%_topdir /builddir/build -%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm - -# Change the next two lines to reflect yourself. - -%packager Freeside Internet Services, Inc. -#%vendor -#%distribution - -# please change this to reflect the Distro Tree and Repo hosting packages! -#%dist . -%centos_ver 5 - -#%_smp_mflags -j1 - -""" +#something here is causing a problem, don't know what, see if we need anything +#re-enabled +#config_opts['macros'] = """ +#%_topdir /builddir/build +#%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm +# +## Change the next two lines to reflect yourself. +# +#%packager Freeside Internet Services, Inc. +##%vendor +##%distribution +# +## please change this to reflect the Distro Tree and Repo hosting packages! +##%dist . +#%centos_ver 5 +# +##%_smp_mflags -j1 +# +#"""