Installing 32bit package for 64bit build

Hello,

my problem is that I need to create a package which requires for the build both the 64bit and 32bit version of a library. If I add the arch with “-32bit” or “x86-32” everything works fine for the 32bit build but the 64bit can’t resolve the dependencies because the library is not found.

Is there a way to install 32bit packages as dependencies for a 64bit build?

I build on a private Instance of the OBS for CentOS6.
The package I want to build is gcc and the dependency is glibc-devel. I got an error because of the missing stubs-32.h file during the 64bit build.

It would be great if somebody could help me.

Regards
Stefan Sedlmaier