Re: Filtering requires/provides

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

 



On Wed, 2006-03-01 at 22:05 +0200, Ville Skyttä wrote:
> On Wed, 2006-03-01 at 17:26 +0000, Paul Howarth wrote:
> 
> > %global filtered_requires sh -c '%{__perl_requires} "$@" | %{__sed} -e 
> > "/^perl(unwanted_require)$/d"'
> > %define __perl_requires %{filtered_requires}
> > 
> > Anyone see any problems with this?
> 
> I don't see any technical problems offhand, but it'll sure get ugly when
> one needs to filter many provides/requires because IIRC the whole
> "%global ..." shebang needs to be on one line.

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}

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