Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can some specific autodetected dependency be ignored upon rpmbuild

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
like image 940
a1an Avatar asked Aug 31 '12 09:08

a1an


1 Answers

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$
like image 178
slowdog Avatar answered Sep 27 '22 16:09

slowdog