add following line to spec file %define _build_id_links none 参考: https://gohalo.me/post/linux-create-rpm-package.html