diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-09-08 16:42:13 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-09-12 22:29:41 +0200 |
commit | a3ac89871102bb2697e2b38a637826d33f80add9 (patch) | |
tree | 453c2713bc931b9ba26538867309e31924122e0a /perlapi.req | |
parent | 06efb215c18a0f7225f636c953f7d6bced24eee8 (diff) | |
download | rpm-setup-a3ac89871102bb2697e2b38a637826d33f80add9.tar rpm-setup-a3ac89871102bb2697e2b38a637826d33f80add9.tar.gz rpm-setup-a3ac89871102bb2697e2b38a637826d33f80add9.tar.bz2 rpm-setup-a3ac89871102bb2697e2b38a637826d33f80add9.tar.xz rpm-setup-a3ac89871102bb2697e2b38a637826d33f80add9.zip |
convert "perlapi" deps to internal generator
Diffstat (limited to 'perlapi.req')
-rwxr-xr-x | perlapi.req | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/perlapi.req b/perlapi.req new file mode 100755 index 0000000..507f74b --- /dev/null +++ b/perlapi.req @@ -0,0 +1,15 @@ +#!/bin/sh +# --- If libperl.so exists and if XS modules are found, depend on perlapi-<version> and libperl.so +while read instfile ; do + if perl -V:useshrplib | grep -q true ; then + if echo $instfile | grep -q `perl -MConfig -e 'print $Config{archname}'` ; then + version=`perl -MConfig -e 'print $Config{version}'` + echo perlapi-$version + + f=`perl -MConfig -e 'print $Config{archlib}'`/CORE/libperl.so + lib64=`if file -L $f 2>/dev/null | \ + grep "ELF 64-bit" >/dev/null; then echo "()(64bit)"; fi` + echo libperl.so$lib64 + fi + fi +done |