SPECS: sqlrelay.spec - bconded BR-s - fixed mysql,php,python builds

glen glen at pld-linux.org
Tue Sep 12 12:06:57 CEST 2006


Author: glen                         Date: Tue Sep 12 10:06:57 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- bconded BR-s
- fixed mysql,php,python builds

---- Files affected:
SPECS:
   sqlrelay.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/sqlrelay.spec
diff -u SPECS/sqlrelay.spec:1.4 SPECS/sqlrelay.spec:1.5
--- SPECS/sqlrelay.spec:1.4	Tue Sep 12 11:34:48 2006
+++ SPECS/sqlrelay.spec	Tue Sep 12 12:06:52 2006
@@ -1,10 +1,10 @@
 # $Revision$, $Date$
 #
 # Conditional build:
-%bcond_with	perl	# build Perl API
-%bcond_with	python	# build python API
-%bcond_with	php	# build PHP module
-%bcond_with	mysql	# build MySQL connector
+%bcond_without	perl	# Don't build Perl api
+%bcond_without	python	# Don't build Python api
+%bcond_without	php	# Don't build PHP api
+%bcond_without	mysql	# Don't build MySQL connection
 #
 Summary:	Persistent database connection system
 Name:		sqlrelay
@@ -16,11 +16,15 @@
 # Source0-md5:	4628782233e548a1436c6149f913fd89
 Source1:	%{name}.init
 Patch0:		%{name}-perl.patch
+Patch1:		%{name}-ac.patch
 URL:		http://sqlrelay.sourceforge.net
-BuildRequires:	mysql-devel
-BuildRequires:	php-devel >= 4:5:0
-BuildRequires:	python >= 1:2.3
-BuildRequires:	readline >= 4.1
+BuildRequires:	autoconf
+BuildRequires:	libtool
+%{?with_mysql:BuildRequires:	mysql-devel}
+BuildRequires:	ncurses-devel
+%{?with_php:BuildRequires:	php-devel >= 4:5:0}
+%{?with_python:BuildRequires:	python}
+BuildRequires:	readline-devel >= 4.1
 BuildRequires:	rpmbuild(macros) >= 1.268
 BuildRequires:	rudiments-devel >= 0.28.1
 Requires(post,postun):	/sbin/ldconfig
@@ -127,8 +131,13 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
 %configure \
 	--disable-gtk \
 	--disable-db2 \
@@ -147,8 +156,19 @@
 	--disable-ruby \
 	--disable-zope \
 	--%{!?with_python:dis}%{?with_python:en}able-python \
-	--%{!?with_mysql:dis}%{?with_mysql:en}able-mysql \
-	--%{!?with_php:dis}%{?with_php:en}able-php \
+%if %{with mysql}
+	--enable-mysql \
+	--with-mysql-prefix=/usr \
+%else
+	--disable-mysql \
+%endif
+%if %{with php}
+	--enable-php \
+	--with-php-ext-dir=%{phpextdir} \
+	--with-pear-db-dir=%{php_pear_dir}/DB \
+%else
+	--disable-php \
+%endif
 %if %{with perl}
 	--enable-perl \
 	--with-perl-site-arch=%{perl_vendorarch} \
@@ -323,6 +343,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2006/09/12 10:06:52  glen
+- bconded BR-s
+- fixed mysql,php,python builds
+
 Revision 1.4  2006/09/12 09:34:48  glen
 - add perl,python,php,mysql bconds
 - create sqlrelay user/group
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/sqlrelay.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list