aboutsummaryrefslogtreecommitdiffstats
path: root/perl_base.req
diff options
context:
space:
mode:
Diffstat (limited to 'perl_base.req')
-rw-r--r--perl_base.req18
1 files changed, 18 insertions, 0 deletions
diff --git a/perl_base.req b/perl_base.req
new file mode 100644
index 0000000..eb95024
--- /dev/null
+++ b/perl_base.req
@@ -0,0 +1,18 @@
+#!/bin/sh
+# Requires on perl-base
+
+perlepoch=`rpm -q --qf '%|EPOCH?{[%{EPOCH}]:}|' perl-base`
+if [ $? != 0 ]; then
+ unset perlepoch
+fi
+
+tmpdeplist=
+
+while read instfile ; do
+ dep="`echo $instfile | sed -n -e "s@.*/usr/lib/perl5/\(vendor_perl/\|site_perl/\|\)\([.0-9]\{1,\}\).*\\$@perl-base >= $perlepoch\2@p"`"
+ if [[ -n $dep && -z `echo $uniqdeplist $tmpdeplist|grep "$dep"` ]]; then
+ tmpdeplist+="$dep\n"
+ fi
+done
+
+echo -n -e $tmpdeplist | sort -u