[WBEL-users] RPM build with --target

"Fernando Apesteguía" <[email protected]>
Newsgroups gmane.linux.whitebox.user
Message-ID <[email protected]>
Hi,

First of all, sorry because this is not a real whitebox question but a more
general rpm question.
I've written a .spec file for a .tgz file. It works fine and it generates a
.rpm by running rpmbuild -ba app.spec

But I'm working with an AMD 64 so my rpm is an x86_64 rpm. I want the 32 bit
rpm too. I've seen man page about rpmbuild and I tried to do:

rpmbuild -ba --target i386 app.spec.

Now I get an .i386.rpm file and in the rpmbuild output, I can see:

make 'RPM_OPT_FLAGS=-O2 -g -pipe -m32 -march=i386 -mtune=pentium4'

but when the building finishes I see:
Requires: libICE.so.6()(64bit) libORBit-2.so.0()(64bit) libSM.so.6()(64bit)
libart_lgpl_2.so.2()(64bit).... (and more)

In fact, I can install and run this rpm in my WBEL 64 bits (of course, I
have not that required 32 bit libraries)
Even more, when I install the application and makes a file over the
executable I get it is a ELF 64 bits.....

What I've done wrong? How can I generate a 32 bit rpm from a 64 bit system?

Thanks.

_______________________________________________
Whitebox-users mailing list
[email protected]
http://beau.org/mailman/listinfo/whitebox-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.