AFAIK the line should be in ~/.rpmmacros instead. Some distros set it as:
%__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
so if it's there:
should work for your purpose, but I wonder if it's the "right" place since forgetting it would be easy. Could you set something like
%global __arch_install_post /bin/true
in your .spec file instead? (I wonder if that works).
BTW, you're not building RPMs as root account user
, aren't you?