From 103b33e21ffe528c39771e345eb06438c173e885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Thu, 11 Nov 2010 15:17:30 +0000 Subject: do version detection though pkg-config --- Makefile.PL | 8 ++------ 1 file 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/"; -- cgit v1.2.1