Building RPMs: ask rpmbuild to follow symlinks in spec -


i trying create rpm out of binaries/libraries without source (source not available me). package structure looks this:

prefix: /pkg/  %file /pkg/bin /pkg/lib 

everything under bin , lib symlinks other locations. still want keep simple structure with actual files when install it. how tell rpmbuild follow symlinks in %file directive?

i tried above when installed rpm, installed symblinks, not actual files.

you can't.

rpmbuild include symlinks part of package; there's no way tell rpmbuild package target of symlink rather symlink itself. best way avoid problem put files want package buildroot rather putting symlinks buildroot. rpmbuild has behavior 2 reasons:

  • to make package building consistent, reproducible process (the contents of target of symlink vary across build hosts)
  • to make easy include symlinks in packages

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -