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>”