[python26-ldap/el5/master] first import

Jeffrey Ness jeffreyness at fedoraproject.org
Wed Feb 23 16:06:43 UTC 2011


commit 4f41e0f56854939eaf738f6ad5a913d0dcba1b46
Author: Jeffrey Ness <jeffrey.ness at rackspace.com>
Date:   Wed Feb 23 10:06:34 2011 -0600

    first import

 .gitignore                               |    1 +
 python-ldap-2.2.0-dirs.patch             |   13 +++
 python-ldap-2.3.12-openldap_compat.patch |   12 ++
 python26-ldap.spec                       |  172 ++++++++++++++++++++++++++++++
 sources                                  |    1 +
 5 files changed, 199 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f5d22f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-ldap-2.3.12.tar.gz
diff --git a/python-ldap-2.2.0-dirs.patch b/python-ldap-2.2.0-dirs.patch
new file mode 100644
index 0000000..ac5e6ef
--- /dev/null
+++ b/python-ldap-2.2.0-dirs.patch
@@ -0,0 +1,13 @@
+diff -up python-ldap-2.3.5/setup.cfg.dirs python-ldap-2.3.5/setup.cfg
+--- python-ldap-2.3.5/setup.cfg.dirs	2008-07-06 11:04:13.000000000 -0400
++++ python-ldap-2.3.5/setup.cfg	2008-09-03 13:45:20.000000000 -0400
+@@ -2,8 +2,7 @@
+ extra_objects = 
+ extra_compile_args = 
+ libs = ldap_r lber sasl2 ssl crypto
+-library_dirs = /usr/local/openldap-2.3/lib
+-include_dirs = /usr/local/openldap-2.3/include /usr/include/sasl
++include_dirs = /usr/include/sasl
+ 
+ [egg_info]
+ tag_build = 
diff --git a/python-ldap-2.3.12-openldap_compat.patch b/python-ldap-2.3.12-openldap_compat.patch
new file mode 100644
index 0000000..f51f2a8
--- /dev/null
+++ b/python-ldap-2.3.12-openldap_compat.patch
@@ -0,0 +1,12 @@
+--- python-ldap-2.3.12/Modules/constants.c.orig	2011-01-05 13:55:50.337149096 -0600
++++ python-ldap-2.3.12/Modules/constants.c	2011-01-05 13:57:15.562928928 -0600
+@@ -181,7 +181,9 @@
+ #ifdef LDAP_OPT_X_TLS_CRLCHECK
+   /* only available if OpenSSL supports it => might cause backward compability problems */
+ 	add_int(d,OPT_X_TLS_CRLCHECK);
++#ifdef LDAP_OPT_X_TLS_CRLFILE
+ 	add_int(d,OPT_X_TLS_CRLFILE);
++#endif
+ 	add_int(d,OPT_X_TLS_CRL_NONE);
+ 	add_int(d,OPT_X_TLS_CRL_PEER);
+ 	add_int(d,OPT_X_TLS_CRL_ALL);
diff --git a/python26-ldap.spec b/python26-ldap.spec
new file mode 100644
index 0000000..0a205d8
--- /dev/null
+++ b/python26-ldap.spec
@@ -0,0 +1,172 @@
+%global __python /usr/bin/python2.6
+%global __os_install_post %{__python26_os_install_post}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
+%define openldap_version 2.3.43
+
+### Abstract ###
+
+Name: python26-ldap
+Version: 2.3.12
+Release: 2%{?dist}
+Epoch: 0
+License: Python
+Group: System Environment/Libraries
+Summary: An object-oriented API to access LDAP directory servers
+URL: http://python-ldap.sourceforge.net/
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Source0: http://pypi.python.org/packages/source/p/python-ldap/python-ldap-%{version}.tar.gz
+
+Patch0: python-ldap-2.2.0-dirs.patch
+Patch1: python-ldap-2.3.12-openldap_compat.patch
+
+Requires: openldap >= %{openldap_version}
+
+# the openldap from RHL <= 9 and RHEL <= 3 is too old for python-ldap
+BuildRequires: openldap-devel >= %{openldap_version}
+BuildRequires: openssl-devel
+BuildRequires: python26, python26-devel
+BuildRequires: cyrus-sasl-devel
+
+%description
+python-ldap provides an object-oriented API for working with LDAP within
+Python programs.  It allows access to LDAP directory servers by wrapping the 
+OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks 
+(including processing LDIF, LDAPURLs, LDAPv3 schema, etc.).
+
+%prep
+%setup -q -n python-ldap-%{version}
+%patch0 -p1 -b .dirs
+%patch1 -p1 -b .openldap_compat
+
+# clean up cvs hidden files
+
+rm -rf Demo/Lib/ldap/.cvsignore \
+       Demo/.cvsignore \
+       Demo/Lib/ldif/.cvsignore \
+       Demo/Lib/ldap/async/.cvsignore \
+       Demo/Lib/.cvsignore \
+       Demo/Lib/ldapurl/.cvsignore
+
+# Fix interpreter
+
+sed -i 's|#! python|#!/usr/bin/python26|g' Demo/simplebrowse.py
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc LICENCE CHANGES README TODO Demo
+%attr(644,root,root) %{python_sitearch}/_ldap.so
+%{python_sitearch}/dsml.py*
+%{python_sitearch}/ldapurl.py*
+%{python_sitearch}/ldif.py*
+%{python_sitearch}/ldap/
+%{python_sitearch}/python_ldap-%{version}-*.egg-info/
+
+%changelog
+* Tue Feb 22 2011 Jeffrey Ness <jeffrey.ness at rackspace.com> - 0:2.3.12-2
+- Adding %%{release} to BuildRoot per Fedora guidelines:
+  http://fedoraproject.org/wiki/EPEL/GuidelinesAndPolicies#BuildRoot_tag
+- Splitting cleanup in %%prep for readability
+
+* Wed Jan 05 2011 Jeffrey Ness <jeffrey.ness at rackspace.com> - 0:2.3.12-1
+- Porting from IUS to EPEL
+- Version increased to current stable found on Fedora 14
+- Modified Source0 as project has moved from Sourceforge to pypi.python.org
+- Added Patch1: python-ldap-2.3.12-openldap_compat.patch,
+  to resolve OpenLDAP compatibility
+
+* Tue Dec 29 2009 Doug Carter <dcarter at mercycorps.org> - 0:2.3.5-1.ius
+- Porting to IUS python26-ldap
+- BuildRequires: python26, python26-devel
+
+* Wed Sep  3 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 0:2.3.5-1
+- fix license tag
+- update to 2.3.5
+
+* Sun Feb 17 2008 Matthew Barnes <mbarnes at redhat.com> - 0:2.3.1-3.fc9
+- Rebuild with GCC 4.3
+
+* Wed Dec 05 2007 Matthew Barnes <mbarnes at redhat.com> - 0:2.3.1-2.fc9
+- Rebuild against new openssl.
+
+* Wed Oct 10 2007 Matthew Barnes <mbarnes at redhat.com> - 0:2.3.1-1.fc8
+- Update to 2.3.1
+
+* Fri Jun 08 2007 Matthew Barnes <mbarnes at redhat.com> - 0:2.3.0-1.fc8
+- Update to 2.3
+- Spec file cleanups.
+
+* Thu Dec  7 2006 Jeremy Katz <katzj at redhat.com> - 0:2.2.0-3
+- rebuild against python 2.5
+
+* Wed Jul 12 2006 Jesse Keating <jkeating at redhat.com>
+- rebuild
+
+* Wed May 17 2006 Matthew Barnes <mbarnes at redhat.com> - 2.2.0-2
+- Put back the epoch line... happy beehive?
+
+* Tue May 15 2006 Matthew Barnes <mbarnes at redhat.com> - 2.2.0-1
+- Update to 2.2.0
+- Update python-ldap-2.0.6-rpath.patch and rename it to
+  python-ldap-2.2.0-dirs.patch.
+
+* Fri Feb 10 2006 Jesse Keating <jkeating at redhat.com> - 0:2.0.6-5.2.1
+- bump again for double-long bug on ppc(64)
+
+* Tue Feb 07 2006 Jesse Keating <jkeating at redhat.com> - 0:2.0.6-5.2
+- rebuilt for new gcc4.1 snapshot and glibc changes
+
+* Fri Dec 09 2005 Jesse Keating <jkeating at redhat.com>
+- rebuilt
+
+* Tue Nov  8 2005 Tomas Mraz <tmraz at redhat.com> - 2.0.6-5
+- rebuilt with new openssl
+
+* Tue Mar 22 2005 Warren Togami <wtogami at redhat.com> - 2.0.6-4
+- add LICENCE (#150842)
+- simplify python reqs
+- remove invalid rpath
+
+* Wed Mar 16 2005 Dan Williams <dcbw at redhat.com> - 0:2.0.6-2
+- rebuilt to pick up new libssl.so.5
+
+* Tue Feb  8 2005 David Malcolm <dmalcolm at redhat.com> - 0:2.0.6-1
+- 2.0.6
+
+* Tue Nov 16 2004 Nalin Dahyabhai <nalin at redhat.com> - 0:2.0.1-3
+- rebuild (#139161)
+
+* Mon Aug 30 2004 David Malcolm <dmalcolm at redhat.com> - 0:2.0.1-2
+- Rewrote description; added requirement for openldap
+
+* Tue Aug 17 2004 David Malcolm <dmalcolm at redhat.com> - 0:2.0.1-1
+- imported into Red Hat's packaging system from Fedora.us; set release to 1
+
+* Wed Jun 30 2004 Panu Matilainen <pmatilai at welho.com> 0:2.0.1-0.fdr.1
+- update to 2.0.1
+
+* Sun Dec 07 2003 Panu Matilainen <pmatilai at welho.com> 0:2.0.0-0.fdr.0.4.pre16
+- fix spec permissions + release tag order (bug 1099)
+
+* Sat Dec  6 2003 Ville Skyttä <ville.skytta at iki.fi> 0:2.0.0-0.fdr.0.pre16.3
+- Stricter python version requirements.
+- BuildRequire openssl-devel.
+- Explicitly build *.pyo, install them as %%ghost.
+- Own more installed dirs.
+- Remove $RPM_BUILD_ROOT at start of %%install.
+
+* Wed Dec 03 2003 Panu Matilainen <pmatilai at welho.com> 0:2.0.0-0.fdr.0.pre16.2
+- duh, build requires python-devel, not just python...
+
+* Wed Dec 03 2003 Panu Matilainen <pmatilai at welho.com> 0:2.0.0-0.fdr.0.pre16.1
+- Initial Fedora packaging.
diff --git a/sources b/sources
index e69de29..4a9c489 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2dadc521b2c2590d9b033894ba5c6f31  python-ldap-2.3.12.tar.gz


More information about the scm-commits mailing list