aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-07-25 15:12:11 +0000
committerFrancois Pons <fpons@mandriva.com>2001-07-25 15:12:11 +0000
commitcd46034202709450b281ce101149dc6af8afaa44 (patch)
treee119276aaf0ec22d34cf9edaf1dc1d7cbeb60640
parent5070f3f86e1897c43fb47007d9aebd55c68f5c9e (diff)
downloadrpmtools-cd46034202709450b281ce101149dc6af8afaa44.tar
rpmtools-cd46034202709450b281ce101149dc6af8afaa44.tar.gz
rpmtools-cd46034202709450b281ce101149dc6af8afaa44.tar.bz2
rpmtools-cd46034202709450b281ce101149dc6af8afaa44.tar.xz
rpmtools-cd46034202709450b281ce101149dc6af8afaa44.zip
avoid using version_compare.v8_1
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a240c4a..616caf0 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ FROMCC_STATIC = $(FROMCC:%=%_static)
ALL = $(FROMC) $(FROMCC)
ALL_STATIC = $(FROMC_STATIC) $(FROMCC_STATIC)
CFLAGS = -Wall -g
-LIBRPM = -lrpm -lrpmio `perl -e 'eval {require "./rpmtools.pm" }; rpmtools::version_compare(qx(rpm -q --qf %{VERSION} rpm), "4.0.3") >= 0 and print "-lrpmdb"'` -lz -lbz2 -I/usr/include/rpm -lpopt
+LIBRPM = -lrpm -lrpmio `perl -e 'local $$_ = qx(rpm -q --qf %{VERSION} rpm); /^4\.0\s*$$/ or print "-lrpmdb"'` -lz -lbz2 -I/usr/include/rpm -lpopt
LIBRPM_STATIC =
all: $(ALL)