[CentOS] cross building rpms for 32bit OS
Michael A. Peters
mpeters at mac.com
Tue Mar 31 13:57:54 UTC 2009
James B. Byrne wrote:
> My test / development host runs CentOS-5.x x86_64. There I have
> successfully created an rpm for GiT-1.6.1-1 for x86_64. Now I would
> like to build the same rpm package for CentOS-5.x i386, but on the
> x86_64 machine.
> Is this even possible? If so, are there any resources that someone
> can refer me too that explains how?
Yes. In fact, I suspect the i386 rpm's for CentOS are built on x86_64
The easy way -
rpmbuild --target="i386" foo.spec
You will need all the 32-bit devel libraries.
The proper way would be to install mock (the version in EPEL is best)
and use that.
More information about the CentOS