Hi.

Here's my fix for php-pgsql.

-- 
Regards // Oden Eriksson, Deserve-IT.com
--- php-pgsql.spec	2003-01-08 03:23:33.000000000 +0100
+++ php-pgsql.spec.oden	2003-01-09 17:11:00.000000000 +0100
@@ -2,7 +2,7 @@
 %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 PostgreSQL
 %define modname pgsql
@@ -10,10 +10,10 @@
 %define soname %{modname}.so
 %define inifile 39_%{modname}.ini
 %define mod_src pgsql.c
-%define mod_lib "-lpq"
-%define mod_def "-DHAVE_PQCMDTUPLES -DCOMPILE_DL_PGSQL -DHAVE_PGSQL"
-%define rlibs libpgsql2
-%define blibs postgresql-devel
+%define mod_lib "-lpq -lssl -lcrypto"
+%define mod_def "-DHAVE_PQESCAPE -DHAVE_PQSETNONBLOCKING -DHAVE_PGSQL_WITH_MULTIBYTE_SUPPORT -DHAVE_PQCMDTUPLES -DCOMPILE_DL_PGSQL -DHAVE_PGSQL"
+%define rlibs libpq3 libopenssl0
+%define blibs postgresql-devel openssl-devel
 
 #########################################################
 ## Nothing to be changed after this, except changelog! ##
@@ -78,6 +78,10 @@
 %config(noreplace) %{_sysconfdir}/php/%{inifile}
 
 %changelog
+* Thu Jan 09 2003 Oden Eriksson <[EMAIL PROTECTED]> 4.3.0-2mdk
+- corrected the mod_lib, mod_def, rlibs and blibs macros after
+  some config.m4 and "pg_config --configure" investigation.
+
 * 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
@@ -136,3 +140,4 @@
 * Mon Apr  2 2001 Jean-Michel Dault <[EMAIL PROTECTED]> 4.0.4pl1-4mdk
 - Split pgsql package from php package so that when a new pgsql 
   package comes out, we don't have to recompile php, only this module
+

Reply via email to