I'm packaging software in RPM and distributing it in different packages by architecture (32bit or 64bit).
Some libraries of my 32bit package have binaries that cannot be executed in 64bit systems (unless some additional libraries installed).
I've used file
command to detect the interpreter needed to execute those binaries, and then added the required libraries as package's dependencies. This only solves a part of the problem, since then other required libraries may collide with the 64bit version installed on end-user's host.
So for sake of simplicity, I would like to know if there is a way to configure rpmbuild
to forbid installing 32bit package in 64bit systems (in the same way that 32bit systems doesn't allow to install 64bit packages).
There is any rpmbuild
option or .spec value available for that?