From 60edb8acb0f88bf624122a70ba2030a4ac799cb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Wed, 16 Jan 2008 18:02:11 +0000 Subject: start on work for rpm5 support --- Makefile.PL | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index d4813d5..e2dc5d4 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -18,7 +18,7 @@ defined $rpm_path or die "Can't find rpm on this system\n"; my $version = `LC_ALL=C $rpm_path --version`; chomp $version; -$version =~ s/RPM version //; +$version =~ s/(RPM version )|(rpm \(RPM\) )//; my $pversion = eval "v$version"; $pversion ge v4.2 or die "Unable to build URPM with too old (or undetected) rpm version $version\n"; @@ -58,7 +58,10 @@ if ($pversion ge v4.4.90 && $pversion lt v4.5) { push @rpmflags, '-DRPM_448'; } if ($pversion ge v4.5) { - push @rpmflags, '-DRPM_450'; + push @rpmflags, '-DRPM_450'; + } + if ($pversion ge v5.0.0) { + push @rpmflags, '-DRPM_500 -DWITH_DB'; } } my $ccflags = join(' ', '-Wall -fno-strict-aliasing', @rpmflags); -- cgit v1.2.1