diff options
Diffstat (limited to 'find-provides.in')
-rwxr-xr-x | find-provides.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/find-provides.in b/find-provides.in index 8636a7b..c14ef6d 100755 --- a/find-provides.in +++ b/find-provides.in @@ -47,6 +47,18 @@ for f in $solist; do done | sort -u # +# --- If libperl.so is found in buildroot, we provide perlapi-<version> +if [ -n "`echo $filelist | grep -e '/CORE/libperl\.so'`" ]; then + for i in $filelist; do + if [ -n "`echo $i | grep -e '/CORE/libperl\.so\$'`" ]; then + perlpath=$i + version=`perl -I"$perlpath" -MConfig -e 'print $Config{version}'` + [ $? == 0 ] && echo "perlapi-$version" + fi + done +fi + +# # --- Perl modules. [ -x @RPMVENDORDIR@/perl.prov ] && echo "$filelist" | tr '[:blank:]' \\n | @RPMVENDORDIR@/perl.prov | grep 'perl([[:upper:]]' | sort -u \ |