summaryrefslogtreecommitdiff
path: root/rpm.spec.in
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-05-07 19:21:16 +0000
committerjbj <devnull@localhost>2001-05-07 19:21:16 +0000
commitd9e5d40dd5b8be2e1304452e61a797f66b5c0a1f (patch)
tree58f6773de0905990673ed55e946ff4c599a04b5d /rpm.spec.in
parentcb55d5c6cd129c37b25670c77704c396307ffb15 (diff)
downloadrpm-d9e5d40dd5b8be2e1304452e61a797f66b5c0a1f.tar.gz
rpm-d9e5d40dd5b8be2e1304452e61a797f66b5c0a1f.tar.bz2
rpm-d9e5d40dd5b8be2e1304452e61a797f66b5c0a1f.zip
- use internal db-3.2.9 sources to build by default.
- don't build db1 by default. CVS patchset: 4750 CVS date: 2001/05/07 19:21:16
Diffstat (limited to 'rpm.spec.in')
-rw-r--r--rpm.spec.in13
1 files changed, 8 insertions, 5 deletions
diff --git a/rpm.spec.in b/rpm.spec.in
index 6f4da2db3..f37fee959 100644
--- a/rpm.spec.in
+++ b/rpm.spec.in
@@ -1,6 +1,7 @@
-%define with_python_subpackage @WITH_PYTHON_SUBPACKAGE@
-%define with_bzip2 @WITH_BZIP2@
-%define with_apidocs @WITH_APIDOCS@
+%define with_python_subpackage @WITH_PYTHON_SUBPACKAGE@ %{nil}
+%define with_bzip2 @WITH_BZIP2@ %{nil}
+%define with_apidocs @WITH_APIDOCS@ %{nil}
+%define with_internal_db @WITH_INTERNAL_DB@ %{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}
@@ -116,9 +119,9 @@ capabilities.
%build
%ifos linux
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} --sysconfdir=/etc --localstatedir=/var --infodir='${prefix}%{__share}/info' --mandir='${prefix}%{__share}/man'
+CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} --sysconfdir=/etc --localstatedir=/var --infodir='${prefix}%{__share}/info' --mandir='${prefix}%{__share}/man' # --enable-db1
%else
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix}
+CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} # --enable-db1
%endif
make