diff --git a/ldappool-1.0.tar.gz b/ldappool-1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..597cc7bd7d6be863ef0a7425afc4d6ffc288625d Binary files /dev/null and b/ldappool-1.0.tar.gz differ diff --git a/ldappool-2.4.1.tar.gz b/ldappool-2.4.1.tar.gz deleted file mode 100644 index fa51cea535baacc5540d3a2d70be5d6270a4ec46..0000000000000000000000000000000000000000 Binary files a/ldappool-2.4.1.tar.gz and /dev/null differ diff --git a/python-ldappool.spec b/python-ldappool.spec index 1bb0d899134ca49d45106bcd5f5e010423d526e0..2a65f147ed1b2e1f07c7287dec3aa14bd8c24f61 100644 --- a/python-ldappool.spec +++ b/python-ldappool.spec @@ -1,48 +1,61 @@ %global _empty_manifest_terminate_build 0 Name: python-ldappool -Version: 2.4.1 +Version: 1.0 Release: 1 -Summary: A simple connector pool for python-ldap. -License: MPL 2.0 and GPL-2.0 and LGPL-2.1 and Apache-2.0 -URL: https://git.openstack.org/cgit/openstack/ldappool -Source0: https://files.pythonhosted.org/packages/d9/fa/cf16c80de9a76a6436f591badcaec41b833274fb1db7b4354a7e801a7f2a/ldappool-2.4.1.tar.gz -BuildRequires: python3-pbr +Summary: A connection pool for python-ldap +License: MPL +URL: https://github.com/mozilla-services/ldappool +Source0: https://files.pythonhosted.org/packages/bc/6d/5ad35142089c690b11bec89c74b6cacd559c27f2690573dd3446a11acec3/ldappool-1.0.tar.gz BuildArch: noarch - -Requires: python3-ldap -Requires: python3-prettytable - %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. +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 reconnection 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**You need python-ldap in order to use this +library*Quickstart ::::::::::To work with the pool, you just need to create it, +then use it as a context manager with the *connectionmethod:: from ldappool +import ConnectionManager cm ConnectionManager('') with cm. -%package -n python3-ldappool -Summary: A simple connector pool for python-ldap. -Provides: python-ldappool -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%description -n python3-ldappool -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. +%package -n python2-ldappool +Summary: A connection pool for python-ldap +Provides: python2-ldappool +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%description -n python2-ldappool +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 reconnection 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**You need python-ldap in order to use this +library*Quickstart ::::::::::To work with the pool, you just need to create it, +then use it as a context manager with the *connectionmethod:: from ldappool +import ConnectionManager cm ConnectionManager('') with cm. %package help Summary: Development documents and examples for ldappool -Provides: python3-ldappool-doc +Provides: python2-ldappool-doc %description help -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. +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 reconnection 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**You need python-ldap in order to use this +library*Quickstart ::::::::::To work with the pool, you just need to create it, +then use it as a context manager with the *connectionmethod:: from ldappool +import ConnectionManager cm ConnectionManager('') with cm. %prep -%autosetup -n ldappool-2.4.1 +%autosetup -n ldappool-1.0 %build -%py3_build +%py2_build %install -%py3_install +%py2_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -69,12 +82,12 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-ldappool -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-ldappool -f filelist.lst +%dir %{python2_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Tue Feb 09 2021 liusheng -- Initial package +* Wed May 12 2021 OpenStack_SIG +- Package Spec generated