Rpmbuild packaging There is a process like this:/usr/lib/rpm/redhat/brp-compress/usr/lib/rpm/redhat/brp-strip/usr/bin/strip/usr/lib/rpm/ redhat/brp-strip-static-archive/usr/bin/strip/usr/lib/rpm/redhat/brp-strip-comment-note/usr/bin/strip/usr/bin/ Objdump/usr/lib/rpm/brp-python-bytecompile/usr/lib/rpm/redhat/brp-java-repack-jars The last step, you can see that if you have a jar in your packaged code, The jar is unpacked and repackaged, and the process is often unsuccessful, a headache. Today finally fortunately find a positive solution, and test no problem. Mechanism to disable is%define __jar_repack 0in the spec file Web also has a workaround. %define _\_os\_install_post%{nil}
This article is from the Linux system maintenance blog, so be sure to keep this source http://linuxadmin.blog.51cto.com/2683824/1782145
Rpmbuild packaging Process Control, disabling "Brp-java-repack-jars"