rpms/perl/devel macros.perl,1.5,1.6

Chris Weyl cweyl at fedoraproject.org
Mon May 31 17:40:58 UTC 2010


Author: cweyl

Update of /cvs/extras/rpms/perl/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv6406/devel

Modified Files:
	macros.perl 
Log Message:
Add %perl_ext_env_unset definition



Index: macros.perl
===================================================================
RCS file: /cvs/extras/rpms/perl/devel/macros.perl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- macros.perl	24 Feb 2010 18:34:07 -0000	1.5
+++ macros.perl	31 May 2010 17:40:58 -0000	1.6
@@ -5,6 +5,25 @@
 #
 # Chris Weyl <cweyl at alumni.drew.edu> 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.
 



More information about the scm-commits mailing list