80a7779
### Abstract ###
91aacc2
# global prerelease b4
ccbb658
ccbb658
%global openldap_version 2.4.45-4
cvsdist c6bdc73
80a7779
Name: python-ldap
6c5cb2f
Version: 3.3.1
726fde6
Release: 7%{?dist}
6b89b38
License: Python
6b89b38
Summary: An object-oriented API to access LDAP directory servers
d6eafa6
URL: https://python-ldap.org/
793c4b8
Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}%{?prerelease}.tar.gz
80a7779
253ce3b
Patch0001: 0001-Fix-SASL-get-set-options-on-big-endian-platforms.patch
253ce3b
80a7779
### Build Dependencies ###
92b1b98
BuildRequires: gcc
ccbb658
BuildRequires: openldap-devel >= %{openldap_version}
80a7779
BuildRequires: openssl-devel
80a7779
BuildRequires: cyrus-sasl-devel
92c2998
BuildRequires: python3-devel
92c2998
BuildRequires: python3-setuptools
92c2998
# Test dependencies
ccbb658
BuildRequires: openldap-servers >= %{openldap_version}
ccbb658
BuildRequires: openldap-clients >= %{openldap_version}
92c2998
BuildRequires: python3-pyasn1 >= 0.3.7
92c2998
BuildRequires: python3-pyasn1-modules >= 0.1.5
paragn e7f02e7
65963d2
%global _description\
65963d2
python-ldap provides an object-oriented API for working with LDAP within\
65963d2
Python programs.  It allows access to LDAP directory servers by wrapping the\
65963d2
OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks\
cvsdist c05c915
(including processing LDIF, LDAPURLs, LDAPv3 schema, etc.).
cvsdist c6bdc73
65963d2
%description %_description
65963d2
92c2998
92c2998
%package -n     python3-ldap
92c2998
Summary:        %{summary}
92c2998
ccbb658
Requires:  openldap >= %{openldap_version}
92c2998
Requires:  python3-pyasn1 >= 0.3.7
92c2998
Requires:  python3-pyasn1-modules >= 0.1.5
92c2998
Requires:  python3-setuptools
92c2998
%{?python_provide:%python_provide python3-ldap}
793c4b8
Obsoletes: python3-pyldap < 3
92c2998
Provides:  python3-pyldap = %{version}-%{release}
92c2998
Provides:  python3-pyldap%{?_isa} = %{version}-%{release}
92c2998
92c2998
%description -n python3-ldap %_description
92c2998
92c2998
cvsdist c6bdc73
%prep
253ce3b
%autosetup -p1 -n %{name}-%{version}%{?prerelease}
6b89b38
# Fix interpreter
cd295f0
find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|'
92c2998
6b89b38
cvsdist c6bdc73
%build
92c2998
%py3_build
92c2998
92c2998
92c2998
%check
3ce0afe
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m unittest discover -v -s Tests -p 't_*'
92c2998
cvsdist c6bdc73
cvsdist c6bdc73
%install
92c2998
%py3_install
92c2998
92c2998
%files -n python3-ldap
cd295f0
%license LICENCE
cd295f0
%doc CHANGES README TODO Demo
92c2998
%{python3_sitearch}/_ldap.cpython-*.so
92c2998
%{python3_sitearch}/ldapurl.py*
92c2998
%{python3_sitearch}/ldif.py*
92c2998
%{python3_sitearch}/__pycache__/*
92c2998
%{python3_sitearch}/slapdtest/
92c2998
%{python3_sitearch}/ldap/
cd295f0
%{python3_sitearch}/python_ldap-%{version}%{?prerelease}-py%{python3_version}.egg-info/
cvsdist c6bdc73
cvsdist c6bdc73
%changelog
726fde6
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-7
726fde6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
726fde6
253ce3b
* Mon Jun 28 2021 Christian Heimes <cheimes@redhat.com> - 3.3.1-6
253ce3b
- Fix SASL get/set options on big endian platforms
253ce3b
- Resolves: rhbz#1976824
253ce3b
2afaefe
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.3.1-5
2afaefe
- Rebuilt for Python 3.10
2afaefe
1c89205
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-4
1c89205
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1c89205
d077215
* Thu Jan 21 17:53:26 CET 2021 Christian Heimes <cheimes@redhat.com> - 3.3.1-3
d077215
- Run test suite without tox (#1918913)
d077215
d6eafa6
* Fri Nov 13 2020 Miro Hrončok <mhroncok@redhat.com> - 3.3.1-2
d6eafa6
- Use https in URL
b2dc48c
- Drop build dependency on python3-coverage
d6eafa6
6c5cb2f
* Thu Oct 22 2020 Christian Heimes <cheimes@redhat.com> - 3.3.1-1
6c5cb2f
- New upstream release 3.3.1
6c5cb2f
c08091b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-11
c08091b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c08091b
9ecf3de
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-10
9ecf3de
- Rebuilt for Python 3.9
9ecf3de
768a372
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-9
768a372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
768a372
cd295f0
* Wed Oct 23 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-8
cd295f0
- Subpackage python2-ldap has been removed
cd295f0
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
cd295f0
93b235b
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-7
93b235b
- Rebuilt for Python 3.8.0rc1 (#1748018)
93b235b
27ec1c1
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-6
27ec1c1
- Rebuilt for Python 3.8
27ec1c1
b53b70a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-5
b53b70a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b53b70a
2eb901f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-4
2eb901f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2eb901f
d32e4be
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-3
d32e4be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d32e4be
05c0434
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-2
05c0434
- Rebuilt for Python 3.7
05c0434
64af0ae
* Fri May 25 2018 Christian Heimes <cheimes@redhat.com> - 3.1.0-1
64af0ae
- New upstream release 3.1.0
64af0ae
91aacc2
* Wed Mar 21 2018 Christian Heimes <cheimes@redhat.com> - 3.0.0-1
91aacc2
- New upstream release 3.0.0
91aacc2
21ffa66
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-0.5.b4
21ffa66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
21ffa66
793c4b8
* Wed Jan 10 2018 Christian Heimes <cheimes@redhat.com> - 3.0.0-0.4.b4
793c4b8
- New upstream release 3.0.0b4 (RHBZ #1496470)
793c4b8
3a67b7a
* Wed Dec 20 2017 Christian Heimes <cheimes@redhat.com> - 3.0.0-0.3.b3
3a67b7a
- New upstream release 3.0.0b3 (RHBZ #1496470)
3a67b7a
ccbb658
* Mon Dec 11 2017 Christian Heimes <cheimes@redhat.com> - 3.0.0-0.2.b2
ccbb658
- New upstream release 3.0.0b2 (RHBZ #1496470)
ccbb658
- Require OpenLDAP with fix for NSS issue (see #1520990)
ccbb658
ccbb658
* Mon Dec 04 2017 Christian Heimes <cheimes@redhat.com> - 0:3.0.0-0.1.b1
92c2998
- New upstream release 3.0.0b1 (RHBZ #1496470)
92c2998
- Resolves RHBZ #1489184
92c2998
- Enable unittests
92c2998
- Remove dsml module
92c2998
- Package python3-ldap, which obsoletes python3-pyldap
92c2998
25fc6c9
* Wed Nov 08 2017 Christian Heimes <cheimes@redhat.com> - 0:2.4.25-9
25fc6c9
- Fix issue in pyasn1 patch
25fc6c9
8b78abd
* Tue Nov 07 2017 Christian Heimes <cheimes@redhat.com> - 0:2.4.25-8
8b78abd
- Apply fix for pyasn1 >= 0.3
8b78abd
65963d2
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0:2.4.25-7
65963d2
- Python 2 binary package renamed to python2-ldap
65963d2
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
65963d2
72a2bc6
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.4.25-6
72a2bc6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
72a2bc6
7ea032f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.4.25-5
7ea032f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7ea032f
Igor Gnatenko 2cabf2c
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0:2.4.25-4
Igor Gnatenko 2cabf2c
- Rebuild due to bug in RPM (RHBZ #1468476)
Igor Gnatenko 2cabf2c
ce304fa
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.4.25-3
ce304fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ce304fa
60bca7c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.25-2
60bca7c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
60bca7c
Petr Spacek e6a830e
* Wed Apr 20 2016 Petr Spacek <pspacek@redhat.com> - 2.4.25-1
Petr Spacek e6a830e
- New upstream release 2.4.25
Petr Spacek e6a830e
c2cbf07
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.4.17-3
c2cbf07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c2cbf07
ec0fa08
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.17-2
ec0fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ec0fa08
Petr Spacek 59002b6
* Mon Sep 29 2014 Petr Spacek <pspacek@redhat.com> - 0:2.4.17-1
Petr Spacek 59002b6
- New upstream release adds features required in bug 1122486
Petr Spacek 59002b6
- Dependency on pyasn1-modules was added to fix bug 995545
Petr Spacek 59002b6
Petr Spacek f4657ad
* Thu Sep 25 2014 Petr Spacek <pspacek@redhat.com> - 0:2.4.16-1
Petr Spacek f4657ad
- New upstream release fixes bug 1007820
Petr Spacek f4657ad
- Dependency on pyasn1 was added to fix bug 995545
Petr Spacek f4657ad
ee66203
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.6-7
ee66203
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ee66203
66b9196
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.6-6
66b9196
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
66b9196
da7634d
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.6-5
da7634d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
da7634d
8d930b0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.6-4
8d930b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8d930b0
5005713
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.6-3
5005713
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5005713
c528bfb
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.6-2
c528bfb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c528bfb
Jeroen van Meeuwen (Ergo Project) ce60d32
* Mon Jan 02 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.4.6-1
Jeroen van Meeuwen (Ergo Project) ce60d32
- New upstream release
Jeroen van Meeuwen (Ergo Project) ce60d32
bf4ab64
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.3.12-2
bf4ab64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bf4ab64
paragn e7f02e7
* Fri Sep 24 2010 Parag Nemade <paragn AT fedoraproject.org> - 0:2.3.12-1
paragn e7f02e7
- Merge-review cleanup (#226343)
paragn e7f02e7
a3e9de8
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0:2.3.10-2
a3e9de8
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
a3e9de8
9509d69
* Thu Jan 14 2010 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.10-1
9509d69
- Update to 2.3.10
9509d69
- Change source URI to pypi.python.org.
9509d69
8235f31
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0:2.3.6-3
8235f31
- rebuilt with new openssl
8235f31
8962186
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.3.6-2
8962186
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8962186
eab7742
* Wed Apr 01 2009 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.6-1
eab7742
- Update to 2.3.6
eab7742
2fe7994
* Fri Feb 27 2009 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.5-5
2fe7994
- Fix a build error.
2fe7994
e7da3f9
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.3.5-4
e7da3f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e7da3f9
a0acb6d
* Fri Jan 16 2009 Tomas Mraz <tmraz@redhat.com> - 0:2.3.5-3
a0acb6d
- rebuild with new openssl
a0acb6d
4840fd1
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0:2.3.5-2
4840fd1
- Rebuild for Python 2.6
4840fd1
6b89b38
* Wed Sep  3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:2.3.5-1
6b89b38
- fix license tag
6b89b38
- update to 2.3.5
6b89b38
e505494
* Sun Feb 17 2008 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.1-3.fc9
e505494
- Rebuild with GCC 4.3
e505494
fcbbe5a
* Wed Dec 05 2007 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.1-2.fc9
fcbbe5a
- Rebuild against new openssl.
fcbbe5a
91a5ef2
* Wed Oct 10 2007 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.1-1.fc8
91a5ef2
- Update to 2.3.1
91a5ef2
80a7779
* Fri Jun 08 2007 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.0-1.fc8
80a7779
- Update to 2.3
80a7779
- Spec file cleanups.
80a7779
d4dbb03
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 0:2.2.0-3
d4dbb03
- rebuild against python 2.5
d4dbb03
d4dbb03
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com>
c504ab5
- rebuild
c504ab5
4a4d194
* Wed May 17 2006 Matthew Barnes <mbarnes@redhat.com> - 2.2.0-2
4a4d194
- Put back the epoch line... happy beehive?
4a4d194
91aacc2
* Mon May 15 2006 Matthew Barnes <mbarnes@redhat.com> - 2.2.0-1
10ed0bc
- Update to 2.2.0
10ed0bc
- Update python-ldap-2.0.6-rpath.patch and rename it to
10ed0bc
  python-ldap-2.2.0-dirs.patch.
10ed0bc
1cc16ae
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0:2.0.6-5.2.1
1cc16ae
- bump again for double-long bug on ppc(64)
1cc16ae
9a38057
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0:2.0.6-5.2
9a38057
- rebuilt for new gcc4.1 snapshot and glibc changes
9a38057
0a08b12
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
0a08b12
- rebuilt
0a08b12
818c55a
* Tue Nov  8 2005 Tomas Mraz <tmraz@redhat.com> - 2.0.6-5
818c55a
- rebuilt with new openssl
818c55a
c4ae1ec
* Tue Mar 22 2005 Warren Togami <wtogami@redhat.com> - 2.0.6-4
80f8f66
- add LICENCE (#150842)
80f8f66
- simplify python reqs
80f8f66
- remove invalid rpath
9a6683f
d5c3015
* Wed Mar 16 2005 Dan Williams <dcbw@redhat.com> - 0:2.0.6-2
d5c3015
- rebuilt to pick up new libssl.so.5
d5c3015
983bb0a
* Tue Feb  8 2005 David Malcolm <dmalcolm@redhat.com> - 0:2.0.6-1
983bb0a
- 2.0.6
983bb0a
658ffb1
* Tue Nov 16 2004 Nalin Dahyabhai <nalin@redhat.com> - 0:2.0.1-3
278c583
- rebuild (#139161)
658ffb1
cvsdist c05c915
* Mon Aug 30 2004 David Malcolm <dmalcolm@redhat.com> - 0:2.0.1-2
cvsdist c05c915
- Rewrote description; added requirement for openldap
cvsdist c05c915
cvsdist c6bdc73
* Tue Aug 17 2004 David Malcolm <dmalcolm@redhat.com> - 0:2.0.1-1
cvsdist c6bdc73
- imported into Red Hat's packaging system from Fedora.us; set release to 1
cvsdist c6bdc73
cvsdist c6bdc73
* Wed Jun 30 2004 Panu Matilainen <pmatilai@welho.com> 0:2.0.1-0.fdr.1
cvsdist c6bdc73
- update to 2.0.1
cvsdist c6bdc73
cvsdist c6bdc73
* Sun Dec 07 2003 Panu Matilainen <pmatilai@welho.com> 0:2.0.0-0.fdr.0.4.pre16
cvsdist c6bdc73
- fix spec permissions + release tag order (bug 1099)
cvsdist c6bdc73
cvsdist c6bdc73
* Sat Dec  6 2003 Ville Skyttä <ville.skytta at iki.fi> 0:2.0.0-0.fdr.0.pre16.3
cvsdist c6bdc73
- Stricter python version requirements.
cvsdist c6bdc73
- BuildRequire openssl-devel.
cvsdist c6bdc73
- Explicitly build *.pyo, install them as %%ghost.
cvsdist c6bdc73
- Own more installed dirs.
cvsdist c6bdc73
- Remove $RPM_BUILD_ROOT at start of %%install.
cvsdist c6bdc73
cvsdist c6bdc73
* Wed Dec 03 2003 Panu Matilainen <pmatilai@welho.com> 0:2.0.0-0.fdr.0.pre16.2
cvsdist c6bdc73
- duh, build requires python-devel, not just python...
cvsdist c6bdc73
cvsdist c6bdc73
* Wed Dec 03 2003 Panu Matilainen <pmatilai@welho.com> 0:2.0.0-0.fdr.0.pre16.1
cvsdist c6bdc73
- Initial Fedora packaging.