15
0
forked from pool/python-ldap3
Files
python-ldap3/python-ldap3.spec

75 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-ldap3
#
# 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
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-ldap3
Version: 2.9.1
Release: 0
Summary: A strictly RFC 4511 conforming LDAP V3 pure Python client
License: LGPL-3.0-only
URL: https://github.com/cannatag/ldap3
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}
- Update to 2.6.1: - added eDirectory 9.1.4 (EDIR_9_1_4) to offline schemas - added json converter for timedelta (thanks dirkjanm) - strip parameter defaults to False in utils.dn.parse_dn() - escaped space is allowed as trailing character in attribute_value in utils.dn.parse_dn() (thanks phi1010) - connection.extend.standard.paged_search doesn't raise exceptions when raise_exceptions is False - the Search operation returns the entries fetched by the server when size or time limits are reached even if raise_exceptions is set to True - Handle the minimum value that can be stored in an Int64 in format_ad_timedelta (thanks mprahl) - EntryState: `entry_raw_attributes` is populated instead of `raw_attributes` (thanks Christian) - Removed restriction to perform rename and move simultaneously in modify_dn (thanks Fabian) - fixed checking for hexdigits in parse_dn (thanks Michael) - fixed escaping when multiple backslashes are present in parse_dn (thanks Phillip) - fixed multiple NoneType exceptions in entry_to_json() (thanks David and cfelder) - allowing Microsoft specific syntax (<WKGUID=xxx>) for WellKnownObjects in DN (thanks David) - connection.extend.standard.paged_search() now follows referrals when auto_referrals=True (thanks kprativa) - fixed a bug in decoding replica list in connection.extend.novell.list_replicas() - fixed a bug when adding duplicate alias in CaseInsensitiveWithAliasDict() - added ignore_duplicates=False in set_aliases in CaseInsensitiveWithAliasDict() to ignore a duplicate alias (either in aliases or in keys) - Schema info now uses CaseInsensitiveWithAlias dict as default so object and attributes can also be referentiated with OID (thanks ahoffm11) - added block mode and timeout parameters to next() method of persistent_search - when using the pyasn1 decoder raw_dn is not returned as a pyasn1 object anymore but as bytes - Return offset timezone aware datetime for max AD timestamp (thanks Jussi) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap3?expand=0&rev=25
2019-10-10 08:17:20 +00:00
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-testsuite
Requires: python-pyasn1 >= 0.4.6
BuildArch: noarch
%python_subpackages
%description
ldap3 is a strictly RFC 4511 conforming LDAP V3 pure Python **client**.
The same codebase works with Python, Python 3, PyPy and PyPy3.
This project was formerly named **python3-ldap**.
The name has been changed to avoid confusion with the python-ldap library.
%prep
%autosetup -p1 -n ldap3-%{version}
# Remove after 2.10 is released.
sed -ie 's/"2.9"/"%{version}"/' _version.json
- Update to 2.6.1: - added eDirectory 9.1.4 (EDIR_9_1_4) to offline schemas - added json converter for timedelta (thanks dirkjanm) - strip parameter defaults to False in utils.dn.parse_dn() - escaped space is allowed as trailing character in attribute_value in utils.dn.parse_dn() (thanks phi1010) - connection.extend.standard.paged_search doesn't raise exceptions when raise_exceptions is False - the Search operation returns the entries fetched by the server when size or time limits are reached even if raise_exceptions is set to True - Handle the minimum value that can be stored in an Int64 in format_ad_timedelta (thanks mprahl) - EntryState: `entry_raw_attributes` is populated instead of `raw_attributes` (thanks Christian) - Removed restriction to perform rename and move simultaneously in modify_dn (thanks Fabian) - fixed checking for hexdigits in parse_dn (thanks Michael) - fixed escaping when multiple backslashes are present in parse_dn (thanks Phillip) - fixed multiple NoneType exceptions in entry_to_json() (thanks David and cfelder) - allowing Microsoft specific syntax (<WKGUID=xxx>) for WellKnownObjects in DN (thanks David) - connection.extend.standard.paged_search() now follows referrals when auto_referrals=True (thanks kprativa) - fixed a bug in decoding replica list in connection.extend.novell.list_replicas() - fixed a bug when adding duplicate alias in CaseInsensitiveWithAliasDict() - added ignore_duplicates=False in set_aliases in CaseInsensitiveWithAliasDict() to ignore a duplicate alias (either in aliases or in keys) - Schema info now uses CaseInsensitiveWithAlias dict as default so object and attributes can also be referentiated with OID (thanks ahoffm11) - added block mode and timeout parameters to next() method of persistent_search - when using the pyasn1 decoder raw_dn is not returned as a pyasn1 object anymore but as bytes - Return offset timezone aware datetime for max AD timestamp (thanks Jussi) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap3?expand=0&rev=25
2019-10-10 08:17:20 +00:00
dos2unix COPYING.LESSER.txt COPYING.txt README.rst LICENSE.txt
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export STRATEGY=SYNC SERVER=EDIR DECODER=INTERNAL
%pytest test/test*.py
%files %{python_files}
%license COPYING.LESSER.txt COPYING.txt LICENSE.txt
%doc README.rst
%{python_sitelib}/ldap3
%{python_sitelib}/ldap3-%{version}*-info
%changelog