Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

rpmbuild will scan Perl modules to find Perl dependencies, but it doesn't understand optional modules and its generated Perl module requirement list will often be wrong. How can I turn this feature off just for Perl dependencies, but leave the rest of the automatic features on? I've tried AutoReqProv: no but that appears to turn off all automatic dependency and provides scanning.

This is on CentOS 5.8 using RPM

share|improve this question

If you want to exclude specific file or dir from scan path for dependencies, try something like this:

%filter_requires_in %{_datarootdir}/%{name}/extra

You can use following macros:

  • %filter_from_requires
  • %filter_requires_in

These are all macros from 'redhat-rpm-config' RPM package. For more information take a look in a file:

share|improve this answer

There are all global macros defined, you could define them to something that does nothing. Otherwise it will be most likely in the generic macros in the same directory.

share|improve this answer
Thanks, I will give that a shot next time I build that rpm. – Schwern Jan 16 '13 at 4:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .