Browse Source

avoid leading whitespace in libdirs variable

master
parent
commit
000dc94ff5
  1. 10
      perl/perl.spec

10
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 \

Loading…
Cancel
Save