Ville Skyttä wrote:
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?
Not yet; I hope to submit one to Extras shortly.
%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)\
perl(IPC::Open3)'
%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.
I was able to repeat this.
Moving the defines to %prep fixed it. Not sure why that worked.
Paul.