问题
I have two (32-bit and 64-bit) versions of a compiled software which I would like to package into ONE binary RPM. I am wondering if 'noarch' target is suitable for this purpose or there are better alternatives? The only issue with 'noarch' that I see is that having i386 and x86_64 binaries in the package doesn't make it architecture-independent which 'noarch' is supposed to be used for.
回答1:
I don't think it's possible to have one binary RPM supporting two architectures. You have to generate 2 RPMs. As you say, the .noarch is for architecture independent RPMs, such a scripts, which can be run on any architecture.
I guess you could build one RPM containing the two binaries (with different names), but this probably goes against the packaging guidelines, so I wouldn't recommend it.
来源:https://stackoverflow.com/questions/25502523/multi-architectural-binary-rpm-and-the-noarch