aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-05-02 10:58:07 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-05-02 10:58:07 +0000
commitd51f1bf901297abcb34d9abb6a4f6c8ed217f713 (patch)
treebcf99947d0e12520e0395aba307d9effddf0c427 /Makefile.PL
parent2c1f1c71ce8b27dad83463d921823802460f3708 (diff)
downloadperl-URPM-d51f1bf901297abcb34d9abb6a4f6c8ed217f713.tar
perl-URPM-d51f1bf901297abcb34d9abb6a4f6c8ed217f713.tar.gz
perl-URPM-d51f1bf901297abcb34d9abb6a4f6c8ed217f713.tar.bz2
perl-URPM-d51f1bf901297abcb34d9abb6a4f6c8ed217f713.tar.xz
perl-URPM-d51f1bf901297abcb34d9abb6a4f6c8ed217f713.zip
Remove rpm 4.0 support
Diffstat (limited to 'Makefile.PL')
-rw-r--r--Makefile.PL10
1 files changed, 3 insertions, 7 deletions
diff --git a/Makefile.PL b/Makefile.PL
index fce2d3b..3f59758 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -2,13 +2,10 @@ use ExtUtils::MakeMaker;
my $version = `rpm --version`;
$version =~ s/RPM version //;
-$version =~ /^(?:[4-9]|\d{2})/
- or die "unable to build URPM with too old (or undetected) rpm version $version";
+$version =~ /^(?:4\.[2-9]|[5-9]|\d{2})/
+ or die "unable to build URPM with too old (or undetected) rpm version $version";
-#- search for correct libraries to use (above 4.0.3 is right).
-my $libs = $version =~ /^4\.0(?:\.[012])?$/ ?
- '-lrpm -lrpmio -lpopt -lz -lbz2' : '-lrpm -lrpmio -lrpmdb -lpopt -lz -lbz2';
-my $define = $version =~ /^(?:4\.[2-9]|[5-9]|\d{2})/ ? '-DRPM_42' : '';
+my $libs = '-lrpm -lrpmio -lrpmdb -lpopt -lz -lbz2';
sub MY::postamble {
<<MAKECHANGELOG;
@@ -28,7 +25,6 @@ WriteMakefile(
'OBJECT' => 'URPM.o',
'VERSION_FROM' => 'URPM.pm',
'LIBS' => [ $libs ],
- 'DEFINE' => $define,
'INC' => '-I/usr/include/rpm',
INSTALLDIRS => 'vendor',
);