If you want to exclude specific file or dir from scan path for dependencies, try something like this:
%filter_requires_in %/%/extra %filter_setup
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:
/usr/lib/rpm/redhat/macros