Monday, April 16. 2007

rpmbuild: disable automatic dependency analysis

Situation: rpmbuild is automatically adding library dependencies. This is usually a good thing, as the executables in the package won't work without the proper libraries.

Problem: However, when the libraries are part of the very same RPM package, you don't need these dependencies. Even worse, rpm will refuse to install the RPM package, as the libraries are missing (yet they are in the package you want to install).

Solution: Add AutoReqProv: no to the spec file. This disables automatic dependency analysis.

Reference: RPM Automatic Dependencies