OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 11-Feb-2003 16:47:36
Branch: HEAD Handle: 2003021115473200
Modified files:
openpkg-src/gdbm gdbm.spec
Log:
add optional NDBM support
Summary:
Revision Changes Path
1.9 +14 -1 openpkg-src/gdbm/gdbm.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/gdbm/gdbm.spec
============================================================================
$ cvs diff -u -r1.8 -r1.9 gdbm.spec
--- openpkg-src/gdbm/gdbm.spec 31 Jan 2003 12:25:53 -0000 1.8
+++ openpkg-src/gdbm/gdbm.spec 11 Feb 2003 15:47:32 -0000 1.9
@@ -33,7 +33,10 @@
Group: Database
License: LGPL
Version: 1.8.3
-Release: 20030114
+Release: 20030211
+
+# package options
+%option with_ndbm no
# list of sources
Source0: ftp://ftp.gnu.org/gnu/gdbm/gdbm-%{version}.tar.gz
@@ -54,6 +57,9 @@
%setup -q
%build
+%if "%{with_ndbm}" == "yes"
+ %{l_shtool} subst -e 's;libgdbm_compat;libndbm;g' Makefile.in
+%endif
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
@@ -68,6 +74,13 @@
exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
BINOWN=`%{l_shtool} echo -e %u` \
BINGRP=`%{l_shtool} echo -e %g`
+%if "%{with_ndbm}" == "yes"
+ %{l_make} %{l_mflags} install-compat \
+ prefix=$RPM_BUILD_ROOT%{l_prefix} \
+ exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
+ BINOWN=`%{l_shtool} echo -e %u` \
+ BINGRP=`%{l_shtool} echo -e %g`
+%endif
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]