aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rwxr-xr-xfind-provides.in12
2 files changed, 14 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index ddc3707..64fb4b0 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
- fix typo that breaks emiting maven provides
+- generate a perlapi-<version> provide when libperl.so is found
+ (inspirated from mdv (pok))
- kill unused find-provides.perl.in
Version 1.151 - 26 Jul 2012, by Thierry Vignaud
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 \