2015-09-10 10:24:50 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-ldap3
|
|
|
|
|
#
|
2025-05-30 10:25:12 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2015-09-10 10:24:50 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2018-12-04 13:37:54 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-09-10 10:24:50 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2023-06-11 20:25:54 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2015-09-10 10:24:50 +00:00
|
|
|
Name: python-ldap3
|
2021-09-01 18:55:38 +00:00
|
|
|
Version: 2.9.1
|
2015-09-10 10:24:50 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: A strictly RFC 4511 conforming LDAP V3 pure Python client
|
2018-04-16 08:28:13 +00:00
|
|
|
License: LGPL-3.0-only
|
|
|
|
|
URL: https://github.com/cannatag/ldap3
|
|
|
|
|
Source: https://github.com/cannatag/ldap3/archive/v%{version}.tar.gz
|
2020-07-24 00:48:30 +00:00
|
|
|
# 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
|
2025-05-30 10:25:12 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-05-15 16:42:42 +00:00
|
|
|
BuildRequires: %{python_module pyasn1 >= 0.4.6}
|
2020-07-24 00:48:30 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-10-02 12:25:51 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-05-30 10:25:12 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-10-10 08:17:20 +00:00
|
|
|
BuildRequires: dos2unix
|
2017-10-02 12:25:51 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-01-24 14:31:20 +00:00
|
|
|
BuildRequires: python3-testsuite
|
2020-05-15 16:42:42 +00:00
|
|
|
Requires: python-pyasn1 >= 0.4.6
|
2015-09-10 10:24:50 +00:00
|
|
|
BuildArch: noarch
|
2017-04-14 15:30:12 +00:00
|
|
|
%python_subpackages
|
2015-09-10 10:24:50 +00:00
|
|
|
|
|
|
|
|
%description
|
2016-10-04 07:14:22 +00:00
|
|
|
ldap3 is a strictly RFC 4511 conforming LDAP V3 pure Python **client**.
|
|
|
|
|
The same codebase works with Python, Python 3, PyPy and PyPy3.
|
2015-09-10 10:24:50 +00:00
|
|
|
|
2016-10-04 07:14:22 +00:00
|
|
|
This project was formerly named **python3-ldap**.
|
|
|
|
|
The name has been changed to avoid confusion with the python-ldap library.
|
2015-09-10 10:24:50 +00:00
|
|
|
|
|
|
|
|
%prep
|
2025-06-17 05:05:15 +00:00
|
|
|
%autosetup -p1 -n ldap3-%{version}
|
|
|
|
|
# Remove after 2.10 is released.
|
|
|
|
|
sed -ie 's/"2.9"/"%{version}"/' _version.json
|
2020-07-24 00:48:30 +00:00
|
|
|
|
2019-10-10 08:17:20 +00:00
|
|
|
dos2unix COPYING.LESSER.txt COPYING.txt README.rst LICENSE.txt
|
2015-09-10 10:24:50 +00:00
|
|
|
|
|
|
|
|
%build
|
2025-05-30 10:25:12 +00:00
|
|
|
%pyproject_wheel
|
2015-09-10 10:24:50 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-05-30 10:25:12 +00:00
|
|
|
%pyproject_install
|
2019-10-14 13:52:07 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2015-09-10 10:24:50 +00:00
|
|
|
|
2018-01-24 14:31:20 +00:00
|
|
|
%check
|
2020-07-24 00:48:30 +00:00
|
|
|
export STRATEGY=SYNC SERVER=EDIR DECODER=INTERNAL
|
|
|
|
|
%pytest test/test*.py
|
2017-04-14 15:30:12 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-04-16 08:28:13 +00:00
|
|
|
%license COPYING.LESSER.txt COPYING.txt LICENSE.txt
|
|
|
|
|
%doc README.rst
|
2016-10-04 07:14:22 +00:00
|
|
|
%{python_sitelib}/ldap3
|
2025-05-30 10:26:22 +00:00
|
|
|
%{python_sitelib}/ldap3-%{version}*-info
|
2015-09-10 10:24:50 +00:00
|
|
|
|
|
|
|
|
%changelog
|