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
Post a Comment