Rpmbuild packaging Process Control, disabling "Brp-java-repack-jars"

Source: Internet
Author: User
Tags rpmbuild
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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.