SPECS: sqlrelay.spec - ruby-DBD-SQLRelay added, files for connections
glen
glen at pld-linux.org
Tue Sep 12 17:03:43 CEST 2006
Author: glen Date: Tue Sep 12 15:03:43 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- ruby-DBD-SQLRelay added, files for connections
---- Files affected:
SPECS:
sqlrelay.spec (1.10 -> 1.11)
---- Diffs:
================================================================
Index: SPECS/sqlrelay.spec
diff -u SPECS/sqlrelay.spec:1.10 SPECS/sqlrelay.spec:1.11
--- SPECS/sqlrelay.spec:1.10 Tue Sep 12 16:12:39 2006
+++ SPECS/sqlrelay.spec Tue Sep 12 17:03:38 2006
@@ -1,6 +1,7 @@
# $Revision$, $Date$
#
# Conditional build:
+%bcond_without gtk # GTK frontend
# Database options:
# ================
%bcond_with db2 # DB2 connection
@@ -22,13 +23,13 @@
%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
+%bcond_with tcl # TCL API
+%bcond_with zope # Zope API
#
Summary: Persistent database connection system
Name: sqlrelay
Version: 0.37.1
-Release: 0.27
+Release: 0.33
License: GPL/LGPL and Others
Group: Daemons
Source0: http://dl.sourceforge.net/sqlrelay/%{name}-%{version}.tar.gz
@@ -37,10 +38,10 @@
Source2: %{name}.conf
Patch0: %{name}-perl.patch
Patch1: %{name}-ac.patch
+Patch2: %{name}-defaults.patch
URL: http://sqlrelay.sourceforge.net
-%{?with_ruby:BuildRequires: ruby-devel}
-%{?with_tcl:BuildRequires: tcl-devel}
BuildRequires: autoconf
+%{?with_gtk:BuildRequires: gtk+-devel}
BuildRequires: libtool
%{?with_mysql:BuildRequires: mysql-devel}
BuildRequires: ncurses-devel
@@ -49,7 +50,9 @@
%{?with_python:BuildRequires: python-devel}
BuildRequires: readline-devel >= 4.1
BuildRequires: rpmbuild(macros) >= 1.268
+%{?with_ruby:BuildRequires: ruby-devel}
BuildRequires: rudiments-devel >= 0.28.1
+%{?with_tcl:BuildRequires: tcl-devel}
%{?with_odbc:BuildRequires: unixODBC-devel}
Requires(post,preun): /sbin/chkconfig
Requires(postun): /usr/sbin/groupdel
@@ -245,6 +248,14 @@
%description -n python-%{name}
SQL Relay modules for Python.
+%package -n ruby-DBD-SQLRelay
+Summary: SQL Relay modules for Ruby
+Group: Development/Languages
+Requires: %{name}-client-runtime = %{version}-%{release}
+
+%description -n ruby-DBD-SQLRelay
+SQL Relay modules for Ruby.
+
%package doc
Summary: Documentation for SQLRelay
Group: Documentation
@@ -256,6 +267,7 @@
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
@@ -263,22 +275,22 @@
%{__autoconf}
%{__autoheader}
%configure \
- --disable-gtk \
- %{!?without_db2:--disable-db2} \
- %{!?without_freetds:--disable-freetds} \
- %{!?without_interbase:--disable-interbase} \
+ %{!?with_gtk:--disable-gtk} \
+ %{!?with_db2:--disable-db2} \
+ %{!?with_freetds:--disable-freetds} \
+ %{!?with_interbase:--disable-interbase} \
--disable-lago \
- %{!?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_mdbtools:--disable-mdbtools} \
+ %{!?with_msql:--disable-msql} \
+ %{!?with_odbc:--disable-odbc} \
+ %{!?with_oracle:--disable-oracle} \
+ %{!?with_postgresql:--disable-postgresql} \
+ %{!?with_sqlite:--disable-sqlite} \
+ %{!?with_sybase:--disable-sybase} \
+ %{!?with_java:--disable-java} \
+ %{!?with_tcl:--disable-tcl} \
+ %{!?with_ruby:--disable-ruby} \
+ %{!?with_zope:--disable-zope} \
--%{!?with_python:dis}%{?with_python:en}able-python \
%if %{with mysql}
--enable-mysql \
@@ -316,6 +328,7 @@
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
+install -d $RPM_BUILD_ROOT/var/run/sqlrelay
rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/{DBD/SQLRelay,SQLRelay/{Connection,Cursor}}/.packlist
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/sqlrelay.conf.example
@@ -375,6 +388,7 @@
%{_mandir}/man8/sqlr-scaler.8*
%{_mandir}/man8/sqlr-start.8*
%{_mandir}/man8/sqlr-stop.8*
+%dir %attr(775,root,sqlrelay) /var/run/sqlrelay
%files devel
%defattr(644,root,root,755)
@@ -421,12 +435,65 @@
%{_libdir}/libmysql*sqlrelay.a
%{_libdir}/libmysql*sqlrelay.la
+%if %{with db2}
+%files db2
+%defattr(644,root,root,755)
+%endif
+
+%if %{with freetds}
+%files freetds
+%defattr(644,root,root,755)
+%endif
+
+%if %{with interbase}
+%files interbase
+%defattr(644,root,root,755)
+%endif
+
+%if %{with mdbtools}
+%files mdbtools
+%defattr(644,root,root,755)
+%endif
+
+%if %{with msql}
+%files msql
+%defattr(644,root,root,755)
+%endif
+
%if %{with mysql}
%files mysql
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/sqlr-connection-mysql*
%endif
+%if %{with odbc}
+%files odbc
+%defattr(644,root,root,755)
+%endif
+
+%if %{with oracle}
+%files oracle7
+%defattr(644,root,root,755)
+
+%files oracle8
+%defattr(644,root,root,755)
+%endif
+
+%if %{with postgresql}
+%files postgresql
+%defattr(644,root,root,755)
+%endif
+
+%if %{with sqlite}
+%files sqlite
+%defattr(644,root,root,755)
+%endif
+
+%if %{with sybase}
+%files sybase
+%defattr(644,root,root,755)
+%endif
+
%if %{with perl}
%files -n perl-SQLRelay
%defattr(644,root,root,755)
@@ -465,6 +532,14 @@
%{_mandir}/man1/query.py.1*
%endif
+%if %{with ruby}
+%files -n ruby-DBD-SQLRelay
+%defattr(644,root,root,755)
+%dir %{ruby_sitelibdir}/DBD/SQLRelay
+%{ruby_sitelibdir}/DBD/SQLRelay/SQLRelay.rb
+%attr(755,root,root) %{ruby_sitearchdir}/sqlrelay.so
+%endif
+
%files doc
%defattr(644,root,root,755)
%doc %{_docdir}/%{name}
@@ -475,6 +550,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.11 2006/09/12 15:03:38 glen
+- ruby-DBD-SQLRelay added, files for connections
+
Revision 1.10 2006/09/12 14:12:39 glen
- bconds for all connectors and apis
- use our default sqlrelay.conf
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/sqlrelay.spec?r1=1.10&r2=1.11&f=u
More information about the pld-cvs-commit
mailing list