From 40b26b76709bd28ef497784df928dc09eabdd8d6 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Mon, 31 May 2010 17:40:58 +0000 Subject: [PATCH] Add %perl_ext_env_unset definition --- macros.perl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/macros.perl b/macros.perl index f478e74..a0adba2 100644 --- a/macros.perl +++ b/macros.perl @@ -5,6 +5,25 @@ # # Chris Weyl 2009 +# This macro unsets several common vars used to control how Makefile.PL (et +# al) build and install packages. We also set a couple do help some of the +# common systems be less interactive. This was blatantly stolen from +# cpanminus, and helps building rpms locally when one makes extensive use of +# local::lib, etc. +# +# Useage, in %build, before "%{__perl} Makefile.PL ..." +# +# %{?perl_ext_env_unset} + +%perl_ext_env_unset %{expand: +unset PERL_MM_OPT MODULEBUILDRC PERL5INC +export PERL_AUTOINSTALL="--defaultdeps" +export PERL_MM_USE_DEFAULT=1 +} + +############################################################################# +# Filtering macro incantations + # keep track of what "revision" of the filtering we're at. Each time we # change the filter we should increment this.