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
I have not found a built-in way, but I wrote a small script that I used as a filter:
You can put your own regular expression lines, in this example I removed
libqt-mt.so.*Then, in the
.specfile:As you can see, this script is in the source tarball under
/build/.