I’m trying to use rpmbuild to build both a x86-64 and 32-bit package. On the examples in the distribution, the same src rpm is used for both output packages. What is the arguments to rpmbuild to make package-lib-32bit-X.x ?
I’m currently do this to get a 32-bit package:
CC=‘gcc -m32’ CXX=‘g++ -m32’ linux32 rpmbuild -ba --target=i586 package-lib.spec
you should use the openSuSE build tool to build you packages. It is much easier and you can use the --baselibs option to create the compatibility 32 bit RPMs as you want it. SUSE Build Tutorial - openSUSE
You can build 32bit RPMs when you run “linux32 build <options>”
It looks like opensuse builds the package as a i586 package and then somehow changes the name to %{name}-32bit and arch to x86-64 (plus a few other vars).