summaryrefslogtreecommitdiff
path: root/rpm.spec
diff options
context:
space:
mode:
Diffstat (limited to 'rpm.spec')
-rw-r--r--rpm.spec9
1 files changed, 6 insertions, 3 deletions
diff --git a/rpm.spec b/rpm.spec
index ea04e479e..afcfa3be4 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -1,6 +1,7 @@
-%define with_python_subpackage 1
-%define with_bzip2 1
-%define with_apidocs 1
+%define with_python_subpackage 1 %{nil}
+%define with_bzip2 1 %{nil}
+%define with_apidocs 1 %{nil}
+%define with_internal_db 1 %{nil}
%define strip_binaries 1
# XXX legacy requires './' payload prefix to be omitted from rpm packages.
@@ -23,6 +24,7 @@ Prereq: gawk fileutils textutils mktemp
Requires: popt
%endif
+%if !%{with_internal_db}
BuildRequires: db3-devel
# XXX glibc-2.1.92 has incompatible locale changes that affect statically
@@ -32,6 +34,7 @@ Requires: glibc >= 2.1.92
# XXX needed to avoid libdb.so.2 satisfied by compat/libc5 provides.
Requires: db1 = 1.85
%endif
+%endif
# XXX Red Hat 5.2 has not bzip2 or python
%if %{with_bzip2}