I've been building rpms a long time,but never bothered with using Mock. Now I need to because some i386 rpms won't build on x86_64 systems and I'm told in the Fedora list that mock is really the only good way to isolate the problems.
I was hoping that somebody here with some experience building RPMs in mock could give me a config file for SL 5. As far as I understand it, this is necessary because mock will download RPMS and install them in an isolated environment. This would save me some trial and error. In the mock for Fedora 8, they have a config file vi fedora-5-i386-epel.cfg, and it appears to be the right one for RH enterprise Linux 5. So I think I can adapt this one to SL. But, if you did it already, show me your goods. I wonder what goes under "local" in the list below. Also I wonder if I can just throw in more repositories... config_opts['root'] = 'epel-5-i386' config_opts['target_arch'] = 'i386' config_opts['chroot_setup_cmd'] = 'install buildsys-build' config_opts['dist'] = 'el5' # ccache not available on epel5 config_opts['plugin_conf']['ccache_enable'] = False config_opts['yum.conf'] = """ [main] cachedir=/var/cache/yum debuglevel=1 logfile=/var/log/yum.log reposdir=/dev/null retries=20 obsoletes=1 gpgcheck=0 assumeyes=1 # repos [core] name=base mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os [update] name=updates mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates [groups] name=groups baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel5/i386/ [extras] name=epel mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=i386 [local] pj -- Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas
