<html><bodyHi ex-colleagues,
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?
Thanks in advance for any advice.
Michel
Michel Samia | Software Engineer msamia@netsuite.commailto:msamia@netsuite.com NetSuitehttp://www.netsuite.com/: Where Business is Going
NOTICE: This email and any attachments may contain confidential and proprietary information of NetSuite Inc. and is for the sole use of the intended recipient for the stated purpose. Any improper use or distribution is prohibited. If you are not the intended recipient, please notify the sender; do not review, copy or distribute; and promptly delete or destroy all transmitted information. Please note that all communications and information transmitted through this email system may be monitored by NetSuite or its agents and that all incoming email is automatically scanned by a third party spam and filtering service
</body></html>
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
On Tue, 2014-10-14 at 11:44 +0200, Miroslav Suchý wrote:
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
Do also look at mockchain: http://skvidal.wordpress.com/2012/04/20/mockchain-use-cases-and-examples/
copr-devel@lists.fedorahosted.org