1、在xxx.spec文件中,%install段下: make prefix="$RPM_BUILD_ROOT" install 这行要起作用,前提必须是相关的makefile是由automake工具生成的,自己写的不好用。