Hi.

Here's my db4 fix for php-dba_bundle (requires at least my php-4.3.0-3mdk)

-- 
Regards // Oden Eriksson, Deserve-IT.com
--- php-dba_bundle.spec	2003-01-08 03:20:54.000000000 +0100
+++ php-dba_bundle.spec.oden	2003-01-09 18:49:00.000000000 +0100
@@ -2,15 +2,15 @@
 %define _docdir %{_datadir}/doc/%{name}-%{version}
 %{expand:%(cat /usr/src/php-devel/PHP_BUILD||(echo -e "error: failed build dependencies:\n        php-devel >= 430 (4.3.0) is needed by this package." >/dev/stderr;kill -2 $PPID))}
 
-%define release 1mdk
+%define release 2mdk
 
-%define realname dba (with cdb, gdbm and db3)
+%define realname dba (with cdb, gdbm and db4)
 %define modname dba
 %define dirname %{modname}
 %define soname %{modname}.so
 %define inifile 16_%{modname}.ini
-%define rlibs libgdbm2 db3
-%define blibs libgdbm2-devel libdb3.3-devel
+%define rlibs libgdbm2 db4
+%define blibs libgdbm2-devel db4-devel
 
 
 Summary:	The %{realname} module for PHP
@@ -26,11 +26,10 @@
 BuildRequires:  php%{libversion}-devel
 BuildRequires:	%{blibs}
 BuildRoot:	%{_tmppath}/%{name}-root
-Provides:       php-dba_gdbm_db2 php-cdb php-db2 php-db3 php-db3
-Obsoletes:      php-dba_gdbm_db2 php-cdb php-db2 php-db3 php-db3
+Provides:       php-dba_gdbm_db2 php-cdb php-db2 php-db3 php-db3 php-db4
+Obsoletes:      php-dba_gdbm_db2 php-cdb php-db2 php-db3 php-db3 php-db4
 Provides: 	ADVXpackage
 
-
 %description
 The %{name} package is a dynamic shared object (DSO) that adds
 %{realname} support to PHP. 
@@ -54,7 +53,7 @@
 
 phpize
 aclocal
-%configure --with-gdbm --with-db3 --with-cdb --with-flatfile
+%configure --with-gdbm --with-db4 --with-cdb --with-flatfile
 %make
 mv modules/*.so .
 
@@ -92,6 +91,9 @@
 %config(noreplace) %{_sysconfdir}/php/%{inifile}
 
 %changelog
+* Thu Jan 09 2003 Oden Eriksson <[EMAIL PROTECTED]> 4.3.0-2mdk
+- added db4 support
+
 * Sun Jan  5 2003 Jean-Michel Dault <[EMAIL PROTECTED]> 4.3.0-1mdk
 - New 4.3.0 release
 - Totally macroize based on suggestions from Alexander Skwar
@@ -161,3 +163,4 @@
 - Split dba_gdbm_db3 package from php package so that when a new gdbm, db2
   or db3 package comes out, we don't have to recompile php, only this module
 
+

Reply via email to