From 000dc94ff57a26a17650cd454744c3d9a8e5f91f Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Thu, 12 Jun 2008 12:50:50 +0000 Subject: [PATCH] avoid leading whitespace in libdirs variable --- perl/perl.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/perl/perl.spec b/perl/perl.spec index c0ede4f462..bc8bc29728 100644 --- a/perl/perl.spec +++ b/perl/perl.spec @@ -32,7 +32,7 @@ Class: CORE Group: Perl License: GPL/Artistic Version: 5.10.0 -Release: 20080413 +Release: 20080612 # list of sources Source0: ftp://ftp.cpan.org/pub/CPAN/src/perl-%{version}.tar.gz @@ -86,7 +86,13 @@ AutoReqProv: no fi libdirs="" for dir in %{l_prefix}/lib /lib64 /usr/lib64 /lib /usr/lib /usr/ccs/lib; do - [ -d $dir ] && libdirs="$libdirs $dir" + if [ -d $dir ]; then + if [ ".$libdirs" = . ]; then + libdirs="$dir" + else + libdirs="$libdirs $dir" + fi + fi done ./Configure \ -d -e -s \