building a 32-bit lib package on x86-64

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

Hope this helps

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).

for opensuse
install ‘build’ rpm

CC=‘gcc -m32’ CXX=‘g++ -m32’ linux32 rpmbuild -bb -target=i586 package.spec
echo package
echo package-devel
} > baselib.conf
/usr/lib/build/mkbaselib -c /usr/lib/build/baselibs_global.conf -c baselib.conf /PATH_TO_RPMS/…/i586/package*.rpm

Thank you so much for the post. It’s really useful.:wink:

demande simulation pret personnel en ligne]( -

Pret personnel en ligne et de comparer les meilleurs taux afin de… La demande de prêt personnel en

lignedemande simulation pret personnel en ligne](