Tomasz Napiera?a wrote:
Thanks for response.
On Friday 10 August 2007 14:45:31 James Pearson wrote:
The 'noarch' rpms normally don't build anything - so they could be a good starting point - the crontabs spec file is a simple example - although if you are generating platform specific RPMS, you won't want the 'BuildArchitectures: noarch' line.
That's another question though. I need to build separate packages for 4 archs. Whuile it's pretty easy to do it while compilind, I'm not sure about binary only packages. Any partucular problems I should be aware of?
I guess you use the '--target=ARCH' on the rpmbuild command line and then in the spec file do something like:
%ifarch i386 do i386 specific stuff here %endif
%ifarch x86_64 do x86_64 specific stuff here %endif
etc.
Have a look at the kernel spec file which does various architecture dependent stuff
James Pearson