Filtering requires/provides

Ville Skyttä ville.skytta at
Thu Mar 2 16:43:36 UTC 2006

On Thu, 2006-03-02 at 11:17 +0000, Paul Howarth wrote:

> Curious. I tried it on a Net-SSH-Perl package on FC4 and used:

Is that package available somewhere online?

> %define bogusreqs 'perl(Crypt::RSA)\
> perl(Crypt::RSA::Key)\
> perl(Crypt::RSA::Key::Private)\
> perl(Crypt::RSA::Key::Public)\
> perl(Crypt::RSA::Primitives)\
> perl(Crypt::RSA::SS::PKCS1v15)'
> %global reqfilt sh -c "%{__perl_requires} | %{__grep} -Fv %{bogusreqs}"
> %define __perl_requires %{reqfilt}
> and it did indeed remove all of the Crypt::RSA* deps (not that I 
> actually wanted to do this, it was just for test purposes).

Curious indeed.  I tried adding this to the top of perl-Net-SSH.spec in
Extras devel branch in CVS:

%define bogusreqs 'perl(IPC::Open2)\
%global reqfilt sh -c "%{__perl_requires} | %{__grep} -Fv %{bogusreqs}"
%define __perl_requires %{reqfilt}

...but after rebuilding the resulting SRPM on FC-4 and Rawhide the
perl(IPC::Open*) dependencies were still there in both binary packages.

More information about the Fedora-perl-devel-list mailing list