diff options
-rw-r--r-- | Makefile.PL | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Makefile.PL b/Makefile.PL index 22eedc5..f592889 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -21,13 +21,9 @@ sub hexversion { return int($major<<16) + int($minor<<8) + int($micro<<0) } -my $version = `LC_ALL=C $rpm_path --version`; -# fix compiling with RCs: -$version =~ s/(-.*)|(\.DEVEL)//; -chomp $version; -$version =~ s/(RPM version )|(rpm \(RPM\) )//; +my $version = `pkg-config --modversion rpm`; my $hversion = hexversion($version); -$hversion ge hexversion("5.0") or die "Unable to build URPM with too old (or undetected) rpm version $version\n"; +$hversion ge hexversion("5.3") or die "Unable to build URPM with too old (or undetected) rpm version $version\n"; # to generate the ChangeLog depending on the checkout layout my $commonusername = "../common/"; |