The behavior of bdist_rpm is determined by a set of settings in:
/usr/lib/rpm/macros/etc/rpm/macros$HOME/.rpmmacros
I bet you only have /usr/lib/rpm/macros on your system. This is normal.
So, to prevent an Arch Binary in noarch package dependent error, you should create /etc/rpm/macros or ~/.rpmmacros and add the following:
%_unpackaged_files_terminate_build 0 %_binaries_in_noarch_packages_terminate_build 0
Do not modify /usr/lib/rpm/macros because this file will be overwritten by the system whenever the rpm-build package is updated, lowered, or reinstalled.
If you want to override the behavior for everyone on the system, put the settings in /etc/rpm/macros . If you want to override the behavior for a specific user, add the settings to $HOME/.rpmmacros .
.rpmmacros trumps /etc/rpm/macros , which is superior to /usr/lib/rpm/macros .
Note: It is useful to examine /usr/lib/rpm/macros to find out what settings are available and sample syntax.
As a side note, setting %_unpackaged_files_terminate_build 0 prevents the error error: Installed (but unpackaged) file(s) found:
source share