diff options
-rw-r--r-- | Makefile.PL | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.PL b/Makefile.PL index a8923dd..fce2d3b 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,8 +1,9 @@ use ExtUtils::MakeMaker; -my $version = `rpm -q --qf '%{VERSION}' rpm`; -$version =~ /^(?:[4-9]|\d{2})/ - or die "Unable to build URPM with too old (or undetected) rpm version $version\n"; +my $version = `rpm --version`; +$version =~ s/RPM version //; +$version =~ /^(?:[4-9]|\d{2})/ + or die "unable to build URPM with too old (or undetected) rpm version $version"; #- search for correct libraries to use (above 4.0.3 is right). my $libs = $version =~ /^4\.0(?:\.[012])?$/ ? |