首先就是正面解决,把未打包的文件给打包了 如果确实不需要打包,那么就可以按照如下两种方式修改。 方式1:修改spec文件 在%install下面添加 %define _unpackaged_files_terminate_build 0 方式2:修改/usr/lib/rpm/macros vi /usr/lib/rpm/macros #%__check_files %{_rpmconfigdir}/check-files %{buildroot} //...
make[1]: Leaving directory `/root/rpmbuild/BUILD/nginx-1.22.1' + exit 0 执行(%install): /bin/sh -e /var/tmp/rpm-tmp.rhFPbw + umask 022 + cd /root/rpmbuild/BUILD + '[' /root/rpmbuild/BUILDROOT/nginx-1.22.1-1.el7.centos.x86_64 '!=' / ']' + rm -rf /root/rpmbuild/BUIL...
make[1]: Leaving directory `/root/rpmbuild/BUILD/nginx-1.22.1' + exit 0 执行(%install): /bin/sh -e /var/tmp/rpm-tmp.rhFPbw + umask 022 + cd /root/rpmbuild/BUILD + '[' /root/rpmbuild/BUILDROOT/nginx-1.22.1-1.el7.centos.x86_64 '!=' / ']' + rm -rf /root/rpmbuild/BUIL...