From e4b30a50a433a0ab11cd05b956f9c1e01b85b5182e790cbc27e56e909879b3b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 May 2025 10:25:12 +0000 Subject: [PATCH 1/3] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap3?expand=0&rev=43 --- python-ldap3.changes | 5 +++++ python-ldap3.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-ldap3.changes b/python-ldap3.changes index 642d0d1..c33bc37 100644 --- a/python-ldap3.changes +++ b/python-ldap3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 30 10:24:47 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Jan 30 15:11:06 UTC 2024 - Antonio Larrosa diff --git a/python-ldap3.spec b/python-ldap3.spec index 05dc1ce..c010284 100644 --- a/python-ldap3.spec +++ b/python-ldap3.spec @@ -1,7 +1,7 @@ # # spec file for package python-ldap3 # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,9 +27,11 @@ Source: https://github.com/cannatag/ldap3/archive/v%{version}.tar.gz # PATCH-FIX-UPSTREAM skip-missing-LDAP-server.patch gh#cannatag/ldap3#843 mcepl@suse.com # skip over tests failing because of the missing local LDAP server running Patch0: skip-missing-LDAP-server.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module pyasn1 >= 0.4.6} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -52,10 +54,10 @@ The name has been changed to avoid confusion with the python-ldap library. dos2unix COPYING.LESSER.txt COPYING.txt README.rst LICENSE.txt %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -66,6 +68,6 @@ export STRATEGY=SYNC SERVER=EDIR DECODER=INTERNAL %license COPYING.LESSER.txt COPYING.txt LICENSE.txt %doc README.rst %{python_sitelib}/ldap3 -%{python_sitelib}/ldap3-*-py*.egg-info +%{python_sitelib}/ldap3-*-py*.egg[-_]info %changelog From f241bb708a6a08c15a1aa81b2c2403fd5cce4862734da7e404234a9d89ae4a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 May 2025 10:26:22 +0000 Subject: [PATCH 2/3] fix files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap3?expand=0&rev=44 --- python-ldap3.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-ldap3.spec b/python-ldap3.spec index c010284..de0d909 100644 --- a/python-ldap3.spec +++ b/python-ldap3.spec @@ -68,6 +68,6 @@ export STRATEGY=SYNC SERVER=EDIR DECODER=INTERNAL %license COPYING.LESSER.txt COPYING.txt LICENSE.txt %doc README.rst %{python_sitelib}/ldap3 -%{python_sitelib}/ldap3-*-py*.egg[-_]info +%{python_sitelib}/ldap3-%{version}*-info %changelog From 9e5906ac44d21031c8cbf9d4620a1c932e5821a6bbcaaf6df6bb09a39ac80e0b Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 17 Jun 2025 05:05:15 +0000 Subject: [PATCH 3/3] - Correct version specifier in setup.py. - Switch to autosetup macro. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap3?expand=0&rev=45 --- python-ldap3.changes | 6 ++++++ python-ldap3.spec | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python-ldap3.changes b/python-ldap3.changes index c33bc37..c25f251 100644 --- a/python-ldap3.changes +++ b/python-ldap3.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 17 05:04:28 UTC 2025 - Steve Kowalik + +- Correct version specifier in setup.py. +- Switch to autosetup macro. + ------------------------------------------------------------------- Fri May 30 10:24:47 UTC 2025 - Markéta Machová diff --git a/python-ldap3.spec b/python-ldap3.spec index de0d909..996b3c3 100644 --- a/python-ldap3.spec +++ b/python-ldap3.spec @@ -48,8 +48,9 @@ This project was formerly named **python3-ldap**. The name has been changed to avoid confusion with the python-ldap library. %prep -%setup -q -n ldap3-%{version} -%autopatch -p1 +%autosetup -p1 -n ldap3-%{version} +# Remove after 2.10 is released. +sed -ie 's/"2.9"/"%{version}"/' _version.json dos2unix COPYING.LESSER.txt COPYING.txt README.rst LICENSE.txt