Re: Building rpm-s from binaries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux