From e902995cc13f740bedc7af85e1b4c4c40d5080b2 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 17 Oct 2005 10:30:46 +0000 Subject: Ignore perl version requires --- perl.req | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/perl.req b/perl.req index fd801f7..888bfaf 100755 --- a/perl.req +++ b/perl.req @@ -203,19 +203,11 @@ sub process_file { $module =~ s/\(\s*\)$//; - if ( $module =~ m/^[0-9._]+$/ ) { - # if module is a number then both require and use interpret that - # to mean that a particular version of perl is specified - - if ($module =~ /5.00/) { - print "perl >= 0:$module\n"; - next; - } - else { - print "perl >= 1:$module\n"; - next; - } - }; + # if module is a number then both require and use interpret that + # to mean that a particular version of perl is specified. Don't + # add a dependency, though, since the rpm will already require + # perl-base at the build version (via find-requires) + next if $module =~ /^v?\d/; # ph files do not use the package name inside the file. # perlmodlib documentation says: -- cgit v1.2.1