Compare commits

1 Commits
main ... 1.1

5 changed files with 15 additions and 65 deletions

View File

@@ -1,25 +0,0 @@
From de85e6b833fc43f273f688680d7a95e9a8330704 Mon Sep 17 00:00:00 2001
From: William Brown <william@blackhats.net.au>
Date: Tue, 5 Aug 2025 15:24:49 +1000
Subject: [PATCH] Use reentrant libldap
---
Build/setup.cfg.suse-linux | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Build/setup.cfg.suse-linux b/Build/setup.cfg.suse-linux
index 0a48ef2..d715737 100644
--- a/Build/setup.cfg.suse-linux
+++ b/Build/setup.cfg.suse-linux
@@ -15,7 +15,7 @@ extra_objects =
# Support for StartTLS/LDAPS, SASL bind and reentrant libldap_r.
# This needs recent OpenLDAP 2.0.26+ or 2.1.3+ built with
# ./configure --with-cyrus-sasl --with-tls
-libs = ldap_r lber sasl2 ssl crypto
+libs = ldap lber sasl2 ssl crypto
[install]
# Installation options
--
2.39.5 (Apple Git-154)

BIN
python-ldap-3.4.3.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
python-ldap-3.4.4.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,23 +1,3 @@
-------------------------------------------------------------------
Tue Aug 5 05:27:36 UTC 2025 - William Brown <william.brown@suse.com>
- Allow building against OpenLDAP 2.5
* 0001-Use-reentrant-libldap.patch
-------------------------------------------------------------------
Thu Aug 29 07:22:28 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Enable sle15_python_module_pythons (boo#1229549)
-------------------------------------------------------------------
Thu Dec 14 21:14:57 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 3.4.4:
* Reconnect race condition in ReconnectLDAPObject is now fixed
* Socket ownership is now claimed once we've passed it to
libldap LDAP_set_option string formats are now compatible
with Python 3.12
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 14 06:14:37 UTC 2023 - William Brown <william.brown@suse.com> Mon Aug 14 06:14:37 UTC 2023 - William Brown <william.brown@suse.com>
@@ -648,7 +628,7 @@ Mon May 12 14:17:53 CEST 2003 - mcihar@suse.cz
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jan 31 00:33:50 CET 2003 - ro@suse.de Fri Jan 31 00:33:50 CET 2003 - ro@suse.de
- use sasl2 - use sasl2
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jan 10 17:37:27 CET 2003 - mcihar@suse.cz Fri Jan 10 17:37:27 CET 2003 - mcihar@suse.cz
@@ -660,7 +640,7 @@ Fri Jan 10 17:37:27 CET 2003 - mcihar@suse.cz
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 26 12:34:03 CEST 2002 - rhafer@suse.de Mon Aug 26 12:34:03 CEST 2002 - rhafer@suse.de
- LDAP_FILT_MAXSIZ isn't defined in libldap anymore - LDAP_FILT_MAXSIZ isn't defined in libldap anymore
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 14 13:32:28 CEST 2002 - vinil@suse.cz Wed Aug 14 13:32:28 CEST 2002 - vinil@suse.cz
@@ -690,7 +670,7 @@ Thu Mar 15 14:05:43 CET 2001 - kukuk@suse.de
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 15 13:04:03 CET 2001 - ro@suse.de Thu Mar 15 13:04:03 CET 2001 - ro@suse.de
- changed for openldap2 - changed for openldap2
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 15 01:08:35 CET 2001 - ro@suse.de Thu Mar 15 01:08:35 CET 2001 - ro@suse.de
@@ -707,7 +687,7 @@ Wed Nov 22 10:48:46 CET 2000 - mt@suse.de
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 6 10:03:38 CET 2000 - ro@suse.de Mon Nov 6 10:03:38 CET 2000 - ro@suse.de
- fixed neededforbuild (added ldaplib) - fixed neededforbuild (added ldaplib)
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Oct 29 09:52:22 CET 2000 - kukuk@suse.de Sun Oct 29 09:52:22 CET 2000 - kukuk@suse.de

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-ldap # spec file for package python-ldap
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,16 +16,18 @@
# #
%{?sle15_python_module_pythons} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-ldap Name: python-ldap
Version: 3.4.4 Version: 3.4.3
Release: 0 Release: 0
Summary: Python LDAP interface Summary: Python LDAP interface
License: Python-2.0 License: Python-2.0
Group: Development/Libraries/Python Group: Development/Libraries/Python
URL: https://www.python-ldap.org/ URL: https://www.python-ldap.org/
Source0: https://files.pythonhosted.org/packages/source/p/python-ldap/python-ldap-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/p/python-ldap/python-ldap-%{version}.tar.gz
Patch0: 0001-Use-reentrant-libldap.patch
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pyasn1 >= 0.3.7} BuildRequires: %{python_module pyasn1 >= 0.3.7}
BuildRequires: %{python_module pyasn1-modules >= 0.1.5} BuildRequires: %{python_module pyasn1-modules >= 0.1.5}
@@ -51,7 +53,7 @@ for that purpose. Additionally the package contains modules for other
LDAP-related stuff (e.g. processing LDIF, LDAPURLs, LDAPv3 schema, etc.). LDAP-related stuff (e.g. processing LDIF, LDAPURLs, LDAPv3 schema, etc.).
%prep %prep
%autosetup -p1 %setup -q
cp Build/setup.cfg.suse-linux setup.cfg cp Build/setup.cfg.suse-linux setup.cfg
%build %build
@@ -67,13 +69,6 @@ PATH=/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin %pyunittest_arch discover -v -
%files %{python_files} %files %{python_files}
%license LICENCE %license LICENCE
%doc README Demo CHANGES TODO %doc README Demo CHANGES TODO
%{python_sitearch}/ldap %{python_sitearch}/*
%{python_sitearch}/python_ldap-%{version}*info
%{python_sitearch}/slapdtest
%{python_sitearch}/ldapurl.py
%{python_sitearch}/ldif.py
%{python_sitearch}/_ldap*
%pycache_only %{python_sitearch}/__pycache__/ldapurl*
%pycache_only %{python_sitearch}/__pycache__/ldif*
%changelog %changelog