aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@redhat.com>2017-10-20 14:39:46 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2017-10-27 19:32:21 +0200
commit6519c3feba534dc5b8f9c53aab0a8fbdaad39637 (patch)
tree92431ab3e162c43a6a86997f63c153466da7862a /Makefile.PL
parent2f99457c2fbd8cad7ddb77ae4063e4e79b67e561 (diff)
downloadperl-URPM-6519c3feba534dc5b8f9c53aab0a8fbdaad39637.tar
perl-URPM-6519c3feba534dc5b8f9c53aab0a8fbdaad39637.tar.gz
perl-URPM-6519c3feba534dc5b8f9c53aab0a8fbdaad39637.tar.bz2
perl-URPM-6519c3feba534dc5b8f9c53aab0a8fbdaad39637.tar.xz
perl-URPM-6519c3feba534dc5b8f9c53aab0a8fbdaad39637.zip
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
Diffstat (limited to 'Makefile.PL')
-rwxr-xr-xMakefile.PL8
1 files changed, 4 insertions, 4 deletions
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);