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 openpkg-web Date: 23-Mar-2003 11:39:34
Branch: HEAD Handle: 2003032310393201
Modified files:
openpkg-src/db db.spec
openpkg-web news.txt
Log:
make db185 and C++ support optional
Summary:
Revision Changes Path
1.30 +25 -3 openpkg-src/db/db.spec
1.3773 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/db/db.spec
============================================================================
$ cvs diff -u -r1.29 -r1.30 db.spec
--- openpkg-src/db/db.spec 30 Jan 2003 08:33:03 -0000 1.29
+++ openpkg-src/db/db.spec 23 Mar 2003 10:39:33 -0000 1.30
@@ -37,7 +37,11 @@
Group: Database
License: BSD
Version: %{V_version}.%{V_revision}
-Release: 20030130
+Release: 20030323
+
+# package options
+%option with_compat no
+%option with_cxx no
# list of sources
Source0: http://www.sleepycat.com/update/snapshot/db-%{V_version}.tar.gz
@@ -62,15 +66,28 @@
%prep
%setup -q -n db-%{V_version}
- %patch0 -p0
+ %patch -p0
%build
cd build_unix
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
+%if "%{with_cxx}" == "yes"
+ CXX="%{l_cxx}" \
+ CXXFLAGS="%{l_cxxflags -O}" \
+%endif
../dist/configure \
--prefix=%{l_prefix} \
+%if "%{with_compat}" == "yes"
--enable-compat185 \
+%else
+ --disable-compat185 \
+%endif
+%if "%{with_cxx}" == "yes"
+ --enable-cxx \
+%else
+ --disable-cxx \
+%endif
--disable-shared
%{l_make} %{l_mflags -O}
@@ -81,9 +98,14 @@
prefix=$RPM_BUILD_ROOT%{l_prefix} \
)
rm -rf $RPM_BUILD_ROOT%{l_prefix}/docs
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+%if "%{with_compat}" == "no"
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/include/db_185.h
+%endif
+%if "%{with_cxx}" == "no"
rm -f $RPM_BUILD_ROOT%{l_prefix}/include/db_cxx.h
rm -f $RPM_BUILD_ROOT%{l_prefix}/include/cxx_*.h
- strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+%endif
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.3772 -r1.3773 news.txt
--- openpkg-web/news.txt 23 Mar 2003 10:18:43 -0000 1.3772
+++ openpkg-web/news.txt 23 Mar 2003 10:39:32 -0000 1.3773
@@ -1,3 +1,4 @@
+23-Mar-2003: Upgraded package: P<db-4.1.25.1-20030323>
23-Mar-2003: Upgraded package: P<libxml-2.5.4-20030323>
23-Mar-2003: Upgraded package: P<mutt-1.4.1i-20030323>
23-Mar-2003: Upgraded package: P<ncurses-5.3.20030322-20030323>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]