Per default, these days at least, this is handled by two scripts
- /usr/lib/rpm/find-requires
- /usr/lib/rpm/find-provides
%define __find_provides [find-provides]
%define __find_requires [find-requires]
Where [find-provides] and [find-requires] are the relative or absolute paths to the scripts you are replacing. Doing only this would not work. This statement is also needed in the spec file:
%define _use_internal_dependency_generator 0
Once that's done everything would work as expected. To make sure this is still the case when reading this, just make sure those are the macro/script combination called upon to check for dependencies:
grep __find /usr/lib/rpm/macros
#%__find_provides %{_rpmconfigdir}/rpmdeps --provides
#%__find_requires %{_rpmconfigdir}/rpmdeps --requires
%__find_provides %{_rpmconfigdir}/find-provides
%__find_requires %{_rpmconfigdir}/find-requires
#%__find_conflicts ???
#%__find_obsoletes ???
This wouldn't affect the redefinition though.
1 comment:
Nice post. Thanks. I had this exact question.
Post a Comment