diff options
Diffstat (limited to 'RPM4/src')
-rw-r--r-- | RPM4/src/Makefile.PL | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/RPM4/src/Makefile.PL b/RPM4/src/Makefile.PL index 89dc752..8aacf15 100644 --- a/RPM4/src/Makefile.PL +++ b/RPM4/src/Makefile.PL @@ -4,6 +4,7 @@ use ExtUtils::MakeMaker; use ExtUtils::PkgConfig; use Getopt::Long; +use version; my $rpmv; GetOptions( @@ -40,7 +41,8 @@ foreach (qw( 4.15.0 )) { my $v = $_; - $rpmv < $v and last; + my $vobj = version->declare("v$_"); + $rpmv < $vobj and last; $v =~ s/\./_/g; print $FH "#define RPM$v\n"; $rpmv =~ /^\Q$_/ and last; |