Revert "%__requires_exclude uses paths, not generated dependencies"

This reverts commit 0b6db36c214a1baafae75871f7bad7f5d039c645.
Revert "smarter solution"

This reverts commit 815b340f0d85f256c6cc476b9cc6b7f636ed4412.