aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-10 11:22:20 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-10 11:22:20 +0000
commitfa804224ba318ab5778fbc27c30ead392e80ee1c (patch)
treee63cf45b94869ba4c92e48b8b49a5b8855254dec /Makefile.PL
parent68780f74d8adcf279f081a63f7df44067b311f08 (diff)
downloadperl-URPM-fa804224ba318ab5778fbc27c30ead392e80ee1c.tar
perl-URPM-fa804224ba318ab5778fbc27c30ead392e80ee1c.tar.gz
perl-URPM-fa804224ba318ab5778fbc27c30ead392e80ee1c.tar.bz2
perl-URPM-fa804224ba318ab5778fbc27c30ead392e80ee1c.tar.xz
perl-URPM-fa804224ba318ab5778fbc27c30ead392e80ee1c.zip
introduce some compatibility code with rpm.org
Diffstat (limited to 'Makefile.PL')
-rw-r--r--Makefile.PL6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.PL b/Makefile.PL
index 63de6ec..d4813d5 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -43,7 +43,11 @@ ChangeLog:
}
my @rpmflags;
-{
+if ($pversion ge v4.4.90 && $pversion lt v4.5) {
+ # rpm.org version
+ push @rpmflags, '-DRPM_ORG';
+} else {
+ # rpm5.org version
if ($pversion ge v4.4.5) {
push @rpmflags, '-DRPM_CALLBACK_LONGLONG';
}