Re: Filtering requires/provides

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ville Skyttä wrote:
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.

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

%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).

The bogusreqs macro is a list of fixed strings, one per line, and should only need escaping if it needed to include a single quote character I think.

Paul.


[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux