SPECS: sqlrelay.spec - bconds for all connectors and apis - use ou...

glen glen at pld-linux.org
Tue Sep 12 16:12:44 CEST 2006


Author: glen                         Date: Tue Sep 12 14:12:44 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- bconds for all connectors and apis
- use our default sqlrelay.conf

---- Files affected:
SPECS:
   sqlrelay.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SPECS/sqlrelay.spec
diff -u SPECS/sqlrelay.spec:1.9 SPECS/sqlrelay.spec:1.10
--- SPECS/sqlrelay.spec:1.9	Tue Sep 12 14:59:24 2006
+++ SPECS/sqlrelay.spec	Tue Sep 12 16:12:39 2006
@@ -1,32 +1,56 @@
 # $Revision$, $Date$
 #
 # Conditional build:
-%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
+# Database options:
+# ================
+%bcond_with	db2	# DB2 connection
+%bcond_with	freetds	# FreeTDS connection
+%bcond_with	interbase	# Interbase connection
+%bcond_with	mdbtools	# MDB Tools connection
+%bcond_with	msql	# mSQL connection
+%bcond_without	mysql	# MySQL connection
+%bcond_with	odbc	# ODBC connection
+%bcond_with	oracle	# Oracle connection
+%bcond_with	postgresql	# PostgreSQL connection
+%bcond_with	sqlite	# SQLite connection
+%bcond_with	sybase	# Sybase connection
+#
+# Language options:
+# ================
+%bcond_with	java	# Java API
+%bcond_without	perl	# Perl API
+%bcond_without	php	# PHP API
+%bcond_without	python	# Python API
+%bcond_without	ruby	# Ruby API
+%bcond_without	tcl		# TCL API
+%bcond_without	zope	# Zope API
 #
 Summary:	Persistent database connection system
 Name:		sqlrelay
 Version:	0.37.1
-Release:	0.23
+Release:	0.27
 License:	GPL/LGPL and Others
 Group:		Daemons
 Source0:	http://dl.sourceforge.net/sqlrelay/%{name}-%{version}.tar.gz
 # Source0-md5:	4628782233e548a1436c6149f913fd89
 Source1:	%{name}.init
+Source2:	%{name}.conf
 Patch0:		%{name}-perl.patch
 Patch1:		%{name}-ac.patch
 URL:		http://sqlrelay.sourceforge.net
+%{?with_ruby:BuildRequires: ruby-devel}
+%{?with_tcl:BuildRequires: tcl-devel}
 BuildRequires:	autoconf
 BuildRequires:	libtool
 %{?with_mysql:BuildRequires:	mysql-devel}
 BuildRequires:	ncurses-devel
 %{?with_php:BuildRequires:	php-devel >= 4:5:0}
-%{?with_python:BuildRequires:	python}
+%{?with_postgresql:BuildRequires: postgresql-devel}
+%{?with_python:BuildRequires:	python-devel}
 BuildRequires:	readline-devel >= 4.1
 BuildRequires:	rpmbuild(macros) >= 1.268
 BuildRequires:	rudiments-devel >= 0.28.1
+%{?with_odbc:BuildRequires: unixODBC-devel}
 Requires(post,preun):	/sbin/chkconfig
 Requires(postun):	/usr/sbin/groupdel
 Requires(postun):	/usr/sbin/userdel
@@ -98,6 +122,47 @@
 Drop in replacement library allowing MySQL clients to use SQL Relay
 instead.
 
+%package db2
+Summary:	SQL Relay connection daemon for IBM DB2
+Group:		Applications/Databases
+Requires:	%{name} = %{version}-%{release}
+
+%description db2
+SQL Relay connection daemon for IBM DB2.
+
+%package freetds
+Summary:	SQL Relay connection daemon for FreeTDS (Sybase and MS SQL Server)
+Group:		Applications/Databases
+Requires:	%{name} = %{version}-%{release}
+
+%description freetds
+SQL Relay connection daemon for FreeTDS (Sybase and MS SQL Server).
+
+%package interbase
+Summary:	SQL Relay connection daemon for Interbase
+Group:		Applications/Databases
+Requires:	%{name} = %{version}-%{release}
+
+%description interbase
+SQL Relay connection daemon for Interbase.
+
+%package mdbtools
+Summary:	SQL Relay connection daemon for MDB Tools (Microsoft Access)
+Group:		Applications/Databases
+Requires:	%{name} = %{version}-%{release}
+
+%description mdbtools
+SQL Relay connection daemon for MDB Tools (Microsoft Access).
+
+
+%package msql
+Summary:	SQL Relay connection daemon for mSQL
+Group:		Applications/Databases
+Requires:	%{name} = %{version}-%{release}
+
+%description msql
+SQL Relay connection daemon for mSQL.
+
 %package mysql
 Summary:	SQL Relay connection daemon for MySQL
 Group:		Applications/Databases
@@ -106,6 +171,54 @@
 %description mysql
 SQL Relay connection daemon for MySQL.
 
+%package odbc
+Summary:	SQL Relay connection daemon for ODBC
+Group:		Applications/Databases
+Requires:	%{name} = %{version}-%{release}
+
+%description odbc
+SQL Relay connection daemon for ODBC.
+
+%package oracle7
+Summary:	SQL Relay connection daemon for Oracle 7
+Group:		Applications/Databases
+Requires:	%{name} = %{version}-%{release}
+
+%description oracle7
+SQL Relay connection daemon for Oracle 7.
+
+%package oracle8
+Summary:	SQL Relay connection daemon for Oracle 8
+Group:		Applications/Databases
+Requires:	%{name} = %{version}-%{release}
+
+%description oracle8
+SQL Relay connection daemon for Oracle 8.
+
+%package postgresql
+Summary:	SQL Relay connection daemon for PostgreSQL
+Group:		Applications/Databases
+Requires:	%{name} = %{version}-%{release}
+
+%description postgresql
+SQL Relay connection daemon for PostgreSQL.
+
+%package sqlite
+Summary:	SQL Relay connection daemon for SQLite
+Group:		Applications/Databases
+Requires:	%{name} = %{version}-%{release}
+
+%description sqlite
+SQL Relay connection daemon for SQLite.
+
+%package sybase
+Summary:	SQL Relay connection daemon for Sybase
+Group:		Applications/Databases
+Requires:	%{name} = %{version}-%{release}
+
+%description sybase
+SQL Relay connection daemon for Sybase.
+
 %package -n perl-SQLRelay
 Summary:	SQL Relay modules for Perl
 Group:		Development/Languages
@@ -151,21 +264,21 @@
 %{__autoheader}
 %configure \
 	--disable-gtk \
-	--disable-db2 \
-	--disable-freetds \
-	--disable-interbase \
+	%{!?without_db2:--disable-db2} \
+	%{!?without_freetds:--disable-freetds} \
+	%{!?without_interbase:--disable-interbase} \
 	--disable-lago \
-	--disable-mdbtools \
-	--disable-msql \
-	--disable-odbc \
-	--disable-oracle \
-	--disable-postgresql \
-	--disable-sqlite \
-	--disable-sybase \
-	--disable-java \
-	--disable-tcl \
-	--disable-ruby \
-	--disable-zope \
+	%{!?without_mdbtools:--disable-mdbtools} \
+	%{!?without_msql:--disable-msql} \
+	%{!?without_odbc:--disable-odbc} \
+	%{!?without_oracle:--disable-oracle} \
+	%{!?without_postgresql:--disable-postgresql} \
+	%{!?without_sqlite:--disable-sqlite} \
+	%{!?without_sybase:--disable-sybase} \
+	%{!?without_java:--disable-java} \
+	%{!?without_tcl:--disable-tcl} \
+	%{!?without_ruby:--disable-ruby} \
+	%{!?without_zope:--disable-zope} \
 	--%{!?with_python:dis}%{?with_python:en}able-python \
 %if %{with mysql}
 	--enable-mysql \
@@ -200,10 +313,12 @@
 %py_postclean %{py_sitedir}/SQLRelay
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sqlrelay
-mv $RPM_BUILD_ROOT%{_sysconfdir}/sqlrelay.conf{.example,}
+cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sqlrelay.conf
 mv $RPM_BUILD_ROOT{/etc/sysconfig/sqlrelay,%{_sysconfdir}/sqlrelay.instances}
+touch $RPM_BUILD_ROOT%{_localstatedir}/sqlrelay/sockseq
 
 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/{DBD/SQLRelay,SQLRelay/{Connection,Cursor}}/.packlist
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/sqlrelay.conf.example
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -250,6 +365,7 @@
 %dir %{_localstatedir}/sqlrelay
 %attr(775,root,sqlrelay) %{_localstatedir}/sqlrelay/tmp
 %attr(775,root,sqlrelay) %{_localstatedir}/sqlrelay/debug
+%attr(660,root,sqlrelay) %ghost %{_localstatedir}/sqlrelay/sockseq
 %{_mandir}/man1/fields.1*
 %{_mandir}/man1/sqlr-config-gtk.1*
 %{_mandir}/man8/sqlr-cachemanager.8*
@@ -359,6 +475,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.10  2006/09/12 14:12:39  glen
+- bconds for all connectors and apis
+- use our default sqlrelay.conf
+
 Revision 1.9  2006/09/12 12:59:24  glen
 - move configs to /etc/sqlrelay
 - php R: php-pear-DB
================================================================

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



More information about the pld-cvs-commit mailing list