From: short <> Date: Thu, 10 Jul 2003 11:39:05 +0000 (+0000) Subject: Fixed rpm build if '%configure' specified in .spec file w/o any arguments. X-Git-Tag: lufs_0_9_6_captive1~29 X-Git-Url: http://git.jankratochvil.net/?p=macros.git;a=commitdiff_plain;h=110202fa95e7c89bb49a271f706a3b7a175398a8 Fixed rpm build if '%configure' specified in .spec file w/o any arguments. --- diff --git a/AutoGen.pm b/AutoGen.pm index 1fad581..a7f223f 100644 --- a/AutoGen.pm +++ b/AutoGen.pm @@ -159,7 +159,7 @@ my($class,%args)=@_; $spec=~s/\\\n/ /gs; $class->run(%Options, "ARGV"=>["--copy"], - "configure_args"=>[split /\s+/,($spec=~/^%configure\s+(.*)$/m)[0]], + "configure_args"=>[split /\s+/,($spec=~/^[%]configure\b[ \t]*(.*)$/m)[0]], ); _remove "ChangeLog"; # force its rebuild by Makefile/rcs2log _system "make dist $name.spec";