Strip any version comparison operator from the 'perl' build requirement

Because cpanspec does things with the epoch, and already adds version
comparison operators itself, they should be stripped from whatever
META.yml specifies so cpanspec does not generate invalid spec files.
This commit is contained in:
Dennis Kaarsemaker
2011-08-19 08:23:50 +02:00
parent 5516e78b17
commit c406955800

View File

@@ -1015,6 +1015,7 @@ END
}
if (defined($build_requires{perl})) {
$build_requires{perl} =~ s/^[<>=]+ *//;
printf $spec "%-16s%s >= %s\n", "BuildRequires:", "perl",
(($build_requires{perl} lt "5.6.0" ? "0:" : "1:")
. $build_requires{perl}) if $build_requires{perl};