aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-06-21 16:25:38 +0000
committerFrancois Pons <fpons@mandriva.com>2001-06-21 16:25:38 +0000
commit4cef6c365db4acae492aa687a24c7911ff9d650d (patch)
tree3dbc7dc5075199c6f71505ce0c75ca32d263b218 /Makefile.PL
parent650038fa7aa8bfe8c2d3c18c12921c65d02bc201 (diff)
downloadrpmtools-4cef6c365db4acae492aa687a24c7911ff9d650d.tar
rpmtools-4cef6c365db4acae492aa687a24c7911ff9d650d.tar.gz
rpmtools-4cef6c365db4acae492aa687a24c7911ff9d650d.tar.bz2
rpmtools-4cef6c365db4acae492aa687a24c7911ff9d650d.tar.xz
rpmtools-4cef6c365db4acae492aa687a24c7911ff9d650d.zip
new 3.0 release, see rpmtools.spec.
Diffstat (limited to 'Makefile.PL')
-rw-r--r--Makefile.PL4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.PL b/Makefile.PL
index be12efe..2bd224b 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -2,7 +2,9 @@ use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
-my $libs = ' -lrpm -lrpmio -lrpmdb -lpopt -lz -lbz2';
+use rpmtools;
+
+my $libs = ' -lrpm -lrpmio ' . (rpmtools::version_compare(qx(rpm -q --qf %{VERSION} rpm), "4.0.3") >= 0 && "-lrpmdb ") . '-lpopt -lz -lbz2';
WriteMakefile(
'NAME' => 'rpmtools',