%global srcname ldappool Name: python-%{srcname} Version: 1.0 Release: 0%{?dist} Url: https://github.com/mozilla-services/ldappool Summary: A connection pool for python-ldap License: MPLv1.1 and GPLv2+ and LGPLv2+ Group: Development/Libraries Source: http://pypi.python.org/packages/source/l/%{srcname}/%{srcname}-%{version}.tar.gz BuildRequires: python2-devel Requires: python-ldap BuildArch: noarch %description A simple connector pool for python-ldap. The pool keeps LDAP connectors alive and let you reuse them, drastically reducing the time spent to initiate a ldap connection. The pool has useful features like: - transparent re-connection on failures or server restarts - configurable pool size and connectors timeouts - configurable max lifetime for connectors - a context manager to simplify acquiring and releasing a connector %prep %setup -q -n %{srcname}-%{version} %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} # FIXME: tests are not launched since they require an active LDAP server # one could use nosetests to launch them # FIXME: add license files as soon as upstream adds them # https://github.com/mozilla-services/ldappool/issues/2 %files %doc README.rst %{python_sitelib}/* %changelog * Tue Feb 28 2012 Haïkel Guémar - 1.0-0 - initial packaging