#报错
file '/opt/leptonica/prog/.libs/binmorph5_reg' contains an invalid rpath '/usr/local/lib' in [/usr/local/lib]
#解决
vim ~/.rpmmacros
#注释
%__arch_install_post \
[ "%{buildarch}" = "noarch" ] || QA_CHECK_RPATHS=1 ; \
case "${QA_CHECK_RPATHS:-}" in [1yY]*) /usr/lib/rpm/check-rpaths ;; esac \
/usr/lib/rpm/check-buildroot