rpmbuild can autodetect dependencies by looking up shared libraries required by binaries included in the package and, while this is a good think almost every time, there are time when it is undesirable but only for some specific libraries. I am referring to the case where some binary file requires libraries that are not provided to the system via its rpm package management but installed directly by third party installers.
Now, the question is: is there a way to keep the autodetect feature active (comes in handy for the other binaries in the package) but ignore/remove only these specific libraries?
Something like
AutoReqIgnore : library1
AutoReqIgnore : library2
As of rpm-4.9 (Fedora 15), rpm has a standard method to enable filtering of the autogenerated dependencies.
For example, you can write
%global __requires_exclude ^libthirdpartyplugin.so$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With