@@ -132,7 +132,7 @@ AC_SUBST(PERL_INSTALLDIR)
if test $withperlinstalldir = "no"
then
- PERL_INSTALLDIR=`$PERL -e 'use Config; $T=$Config{installsitearch}; print $T;'`
+ PERL_INSTALLDIR=`$PERL -e 'use Config; $T=$Config{installvendorlib}; print $T;'`
fi
AC_SUBST(PERL_INSTALLDIR)
@@ -50,7 +50,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.a
%{_libdir}/*.so*
%{_includedir}/infiniband/*.h
-%define _perldir %(perl -e 'use Config; $T=$Config{installsitearch}; $T=~/(.*)\\/site_perl.*/; print $1;')
+%define _perldir %(perl -e 'use Config; $T=$Config{installvendorlib}; print $T;')
%{_perldir}/*
%{_mandir}/man8/*
%{_mandir}/man3/*
Signed-off-by: Ira Weiny <weiny2@llnl.gov> --- configure.in | 2 +- infiniband-diags.spec.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)