summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrjray <devnull@localhost>2000-10-10 08:28:10 +0000
committerrjray <devnull@localhost>2000-10-10 08:28:10 +0000
commit7da9566b9ed77de5c5dadb5a3627a36d7fd4174e (patch)
treef37fd32f189cd0718bf04dac221760f612a0d2bc
parentaff9958bb64619b234c176c298dfee8753d04e06 (diff)
downloadlibrpm-tizen-7da9566b9ed77de5c5dadb5a3627a36d7fd4174e.tar.gz
librpm-tizen-7da9566b9ed77de5c5dadb5a3627a36d7fd4174e.tar.bz2
librpm-tizen-7da9566b9ed77de5c5dadb5a3627a36d7fd4174e.zip
The rpm-version defines should have been put in for versions older
than 4.0. CVS patchset: 4199 CVS date: 2000/10/10 08:28:10
-rw-r--r--Perl-RPM/Makefile.PL11
1 files changed, 7 insertions, 4 deletions
diff --git a/Perl-RPM/Makefile.PL b/Perl-RPM/Makefile.PL
index eb618fda8..3f7923a2f 100644
--- a/Perl-RPM/Makefile.PL
+++ b/Perl-RPM/Makefile.PL
@@ -1,3 +1,7 @@
+#!/bin/perl
+
+# $Id: Makefile.PL,v 1.11 2000/10/10 08:28:10 rjray Exp $
+
use Config;
use ExtUtils::MakeMaker;
@@ -54,15 +58,14 @@ die "RPM version must be at least 3.0.4, due to I/O features not available
prior to that version. Stopped"
unless ($rpm_version >= 3000004);
# Starting with RPM 4.0, there are a number of subtle-but-significant changes
+$rpm_defines = "-DRPM_MAJOR=$rpm_version[0] -DRPM_MINOR=$rpm_version[1]" .
+ " -DRPM_PATCH=$rpm_version[2]";
if ($rpm_version >= 4000000)
{
- $rpm_defines = "-DRPM_MAJOR=$rpm_version[0] -DRPM_MINOR=$rpm_version[1]" .
- " -DRPM_PATCH=$rpm_version[2]";
$rpm_libs = '-lrpm -lrpmio -lpopt';
}
else
{
- $rpm_defines = '';
$rpm_libs = '-lrpm -lpopt';
}
@@ -75,7 +78,7 @@ for (qw(/usr/include /usr/local/include /opt/include /opt/rpm/include))
}
die "Header file 'rpmlib.h' not found. This is needed for compiling the XS glue
code. If this is present, edit $0 and add the correct directory to the search
-list at line 58. Stopped"
+list near line 75. Stopped"
unless $rpm_libdir;
WriteMakefile(