On Thu, Mar 26, 2009 at 01:58:30PM +0100, Jan-Frode Myklebust wrote:
> Please also apply the attached patch to avoid lots of unneccassary
> RPM dependencies.
> 
> +# Exclude examples/check from dependencies, to avoid unneccessary 
> dependencies.
> +cat << \EOF > %{name}-req
> +#!/bin/sh
> +%{__perl_requires} $* |\
> +sed -e ā€˜/perl(examples/check)/d’
> +EOF
> +%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
> +chmod 755 %{__perl_requires}
> +
>  %build
>  %{__make} USE_PCRE=1 "COPTS.pcre=-DUSE_PCRE $(pcre-config --cflags)" 
> DEBUG="" TARGET=linux26
>  #%{__make} REGEX=pcre DEBUG="" LIBS.pcre="-L\$(PCREDIR)/lib -Wl,-Bstatic 
> -lpcreposix -lpcre -Wl,-Bdynamic"

Sorry, this was wrong and worked by mistake.. Maybe better to just disable 
processing of perl-dependencies by simply:

        %define __perl_requires /bin/true



  -jf

Attachment: pgp9L42mMojg1.pgp
Description: PGP signature

Reply via email to