Compare commits

..

No commits in common. "dc08e3674f0be4f07ec7904214480f3d5482fc37" and "b37e08a1318e053e867b5383cd2cfbda9f81c4bc" have entirely different histories.

3 changed files with 10 additions and 42 deletions

BIN
python-ldap-3.1.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,14 @@
Name: python-ldap
Version: 3.4.4
Release: 1
%define debug_package %{nil}
Name: python-ldap
Version: 3.1.0
Release: 4
Summary: An object-oriented API to access LDAP directory servers
License: Python-2.0
License: Python
URL: http://python-ldap.org/
Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildRequires: gcc openldap-devel
BuildRequires: python3-devel python3-setuptools
BuildRequires: gcc openldap-devel openssl-devel cyrus-sasl-devel
BuildRequires: python3-devel python3-setuptools openldap-servers
%description
python-ldap provides an object-oriented API for working with LDAP within\
@ -34,11 +35,11 @@ OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks\
%package_help
%prep
%autosetup -p1 -n %{name}-%{version}
%autosetup -n %{name}-%{version}
find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|'
sed -i 's,-Werror,-Wignore,g' tox.ini
%build
%py3_build
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
%install
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
@ -55,45 +56,12 @@ sed -i 's,-Werror,-Wignore,g' tox.ini
%doc CHANGES README TODO Demo
%changelog
* Thu Feb 1 2024 liubo <liubo335@huawei.com> - 3.4.4-1
- Type: requirement
- ID: NA
- SUG: NA
- DESC: update to version 3.4.4
* Fri Aug 05 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 3.3.1-5
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix a system error and optimize the checking of LDAP results
* Fri Aug 05 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 3.3.1-4
- Type:requirements
- Id:NA
- SUG:NA
- DESC:modify to generate debug rpms
* Tue Jul 26 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 3.3.1-3
- Type:CVE
- Id:CVE-2021-46823
- SUG:NA
- DESC:fix CVE-2021-46823
* Fri Mar 04 2022 zhaoshuang <zhaoshuang@uniontech.com> - 3.3.1-2
- remove some unnecessary buildrequires
* Tue Feb 02 2021 xihaochen <xihaochen@huawei.com> - 3.3.1-1
- Type:requirements
- Id:NA
- SUG:NA
- DESC:update python-ldap to 3.3.1
* Wed Oct 14 2020 shixuantong<shixuantong@huawei.com> - 3.1.0-4
- delete useless buildrequires
* Tue Jun 23 2020 wangchong <wangchong56@huawei.com> - 3.1.0-3
- replace numbers with macros
* Mon Jun 22 2020 wangchong <wangchong56@huawei.com> - 3.1.0-2
- fix the build error