spec文件里没有BuildArch的时候可以正常生成rpm文件,加上BuildArch:noarch报如下错误:
error: Arch dependent binaries in noarch package RPM build errors: Arch dependent binaries in noarch package
google的解决方法是在spec文件里加上下面这行:
%define _binaries_in_noarch_packages_terminate_build 0
转载于:https://blog.51cto.com/foolishfish/1431894