[book] remove dbapi documentation
Move some still-relevant doc related to the RQL connection API to the
'sessions' section. It might make sense to move this back outside of
the "Repository development" chapter at some point since this is
relevant in other contexts.
# for el5, force use of python2.6%%if 0%%{?el5}%%define python python26%%define __python /usr/bin/python2.6%%else%%define python python%%define __python /usr/bin/python%%endif%%{!?_python_sitelib: %%define _python_sitelib %%(%%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}Name: %(distname)sVersion: 0.1.0Release: logilab.1%%{?dist}Summary: %(shortdesc)sGroup: Applications/InternetLicense: %(license)sSource0: %(distname)s-%%{version}.tar.gzBuildArch: noarchBuildRoot: %%{_tmppath}/%%{name}-%%{version}-%%{release}-buildrootBuildRequires: %%{python} %%{python}-setuptoolsRequires: cubicweb >= %(version)s%%description%(longdesc)s%%prep%%setup -q -n %(distname)s-%%{version}%%if 0%%{?el5}# change the python version in shebangsfind . -name '*.py' -type f -print0 | xargs -0 sed -i '1,3s;^#!.*python.*$;#! /usr/bin/python2.6;'%%endif%%installNO_SETUPTOOLS=1 %%{__python} setup.py --quiet install --no-compile --prefix=%%{_prefix} --root="$RPM_BUILD_ROOT"# remove generated .egg-info filerm -rf $RPM_BUILD_ROOT/usr/lib/python*%%cleanrm -rf $RPM_BUILD_ROOT%%files%%defattr(-, root, root)/*