32-bit lib packages for x86-64

I am trying to use rpmbuild to build x86-64 and libs-32bit packages. The same src rpm is uesd for building both output packages.
What are the rpmbuild arguments for creating the lib-32bit-Xxx68_64.rpm package?

I am currently doing this to get a 32-bit packet:
CC = 'gcc -m32' CXX = 'g ++ -m32' linux32 rpmbuild -bb -target = i586 package.spec

This gives me the package-lib-Xxi586.rpm when I need the package lib-32bit-Xxx86_ 64.rpm.
What arguments do "32bit" get added to the package name and called x86_64?

+4
source share
1 answer

for openuse
install 'build' rpm

CC = 'gcc -m32' CXX = 'g ++ -m32' linux32 rpmbuild -bb --target = i586 package.spec
{
echo pack
echo package-devel
}> baselib.conf
/ usr / lib / build / mkbaselibs -c / usr / lib / build / baselibs_ global.conf -c baselib.conf / PATH_ TO_ RPMS /.../ i586 / package * .rpm

[modified to add the missing second dash '-' for the target parameter in rpmbuild]

+6
source

All Articles