On Wed, 2006-03-01 at 21:52 +0000, Paul Howarth wrote: > OK, revised version: > > %define bogusreqs 'perl(Bad::Module)\ > perl(Some::Other::Bad::Module)\ > perl(Yet::Other::Bad::Module)\ > perl(And::Other::Bad::Module)\ > something-else-entirely\ > last-thing' > %global reqfilt sh -c "%{__perl_requires} | %{__grep} -Fv %{bogusreqs}" > %define __perl_requires %{reqfilt} That approach fails to filter any dependencies here.