[python-ldappool] initial import

Haïkel Guémar hguemar at fedoraproject.org
Mon Mar 26 17:52:32 UTC 2012


commit 309cc9eca098631de7192a564495e1f311005f0f
Author: Haïkel Guémar <hguemar at fedoraproject.org>
Date:   Mon Mar 26 19:52:23 2012 +0200

    initial import

 .gitignore           |    1 +
 python-ldappool.spec |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 52 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..bd4f0cf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ldappool-1.0.tar.gz
diff --git a/python-ldappool.spec b/python-ldappool.spec
new file mode 100644
index 0000000..e6ecc9a
--- /dev/null
+++ b/python-ldappool.spec
@@ -0,0 +1,50 @@
+%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 <hguemar at fedoraproject.org> - 1.0-0
+- initial packaging
+
diff --git a/sources b/sources
index e69de29..db3c67a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2f2f9ca14dc36b432d2acd379d196062  ldappool-1.0.tar.gz


More information about the scm-commits mailing list