On 10/14/2014 10:44 AM, Samia, Michel wrote:
I am doing rpm packaging of our internal packages here in NetSuite.
We need to build RPMs for el5, el6 and in a near
future probably also for el7. Can all the three packages be built on one host? And how
to do it? Should we use copr,
koji, or mock? Or can it be done directly by rpmbuild?
If you use Koji or Copr, then there is no guarantee that it will be build on one host. In
fact it is very unlikely.
Well, unless you have private instance, which have only one builder.
If you really need to build it on one host only (not sure why), then mock is your friend.
mock -r epel-6-x86_64 foo.src.rpm
mock -r epel-5-x86_64 foo.src.rpm
Those names maps to files in /etc/mock/*.cfg
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys