From 3f7a3190ea14c1504cc66bed7ad468b4f36ce59c Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Fri, 10 Nov 2006 15:54:14 +0000 Subject: [PATCH] - use php module directory given by php-config --- PLCAPI.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/PLCAPI.spec b/PLCAPI.spec index 51a5ba8..2657cd9 100644 --- a/PLCAPI.spec +++ b/PLCAPI.spec @@ -10,7 +10,14 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Obsoletes: plcapilib +# We use set everywhere +Requires: python >= 2.4 + +# We use psycopg2 +BuildRequires: postgresql-devel + # Standard xmlrpc.so that ships with PHP does not marshal NULL +BuildRequires: php-devel Obsoletes: php-xmlrpc Provides: php-xmlrpc @@ -52,13 +59,15 @@ EOF %clean rm -rf $RPM_BUILD_ROOT +%define php_extension_dir %(php-config --extension-dir) + %files %defattr(-,root,root,-) %doc doc/PLCAPI.xml doc/PLCAPI.pdf doc/PLCAPI.html %dir %{_datadir}/plc_api %{_datadir}/plc_api/* %{_bindir}/plcsh -%{_libdir}/php/modules/xmlrpc.so +%{php_extension_dir}/xmlrpc.so %{_sysconfdir}/php.d/xmlrpc.ini %changelog -- 2.43.0