解决方法:
第一种: add those files below %files section
To make it build you just add the unpacked files to the list
第二种: 对于安装后的文件会被修改的情况, 利用%config(noreplace)宏处理
例如*.py文件在执行时会产生*.pyc文件
第三种: 使用 %exclude 告知rpm不包含哪些文件
%files
......
%exclude %{_datadir}/heartbeat-gui/haclient.pyc
%exclude %{_libexecdir}/mod_sql_mysql.so
the %exclude directive would exclude them from the package, but also tell RPM, "Yes, these files will be left behind as artifacts of the 'make install', and I know that, so don't crap out telling me that files were left over" (or whatever).
------------------------------------------------------------------------------------------------------------------
1、找到 /usr/lib/rpm/macros 中
%__check_files