由于鸟哥那边要想测试最新的php,需求保留相关调试信息,需打包后为un- striped,而我们的默认%__debug_install_post会默认另行打包一个rpm包,故需在你的spec文件头中加入以下内容皆可
- %define debug_package %{nil}
/usr/lib/rpm/macros的相关定义如下
- %__debug_install_post \
- /usr/lib/rpm/find-debuginfo.sh %{?_missing_build_ids_terminate_build:--strict-build-id} %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}"\
- %{nil}
希望能帮助有相同需求的朋友
转载于:https://blog.51cto.com/zhangbo/1125675