From 6519c3feba534dc5b8f9c53aab0a8fbdaad39637 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 20 Oct 2017 14:39:46 +0200 Subject: we don't actually support rpm < 4.13 anymore technically restoring rpm-4.13 support needs a small patch We could even still support rpm-4.12 by ifdef-ing the ELEM callback --- Makefile.PL | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index 05a2b6a..90b00f3 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -27,13 +27,13 @@ $version =~ s/(-.*)|(\.DEVEL)//; chomp $version; $version =~ s/(RPM version )|(rpm \(RPM\) )//; my $hversion = hexversion($version); -$hversion ge hexversion("4.9") or die "Unable to build URPM with too old (or undetected) rpm version $version\n"; +$hversion ge hexversion("4.13") or die "Unable to build URPM with too old (or undetected) rpm version $version\n"; my @rpmflags; my $ldflags = `pkg-config --libs rpm` . ' -lrpmbuild'; -if ($hversion ge hexversion("4.9.0") && $hversion lt hexversion("5.0")) { - # rpm.org version 4.9.0 - push @rpmflags, "-DRPM490"; +if ($hversion ge hexversion("4.13.0") && $hversion lt hexversion("5.0")) { + # rpm.org version 4.13.0 + push @rpmflags, "-DRPM4140"; } my $ccflags = join(' ', '-Wall -Wextra -fno-strict-aliasing', @rpmflags); -- cgit v1.2.1