## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec ### Abstract ### %bcond servers %{undefined rhel} # global prerelease b4 %global openldap_version 2.4.45-4 %global pypi_name python-ldap Name: python-ldap Version: 3.4.4 Release: %autorelease License: python-ldap Summary: An object-oriented API to access LDAP directory servers URL: https://python-ldap.org/ Source0: %{pypi_source} Patch101: 0001-Disable-openldap-servers-tests.patch ### Build Dependencies ### BuildRequires: gcc BuildRequires: openldap-devel >= %{openldap_version} BuildRequires: openssl-devel BuildRequires: cyrus-sasl-devel BuildRequires: python3-devel BuildRequires: python3-setuptools # Test dependencies %if %{with servers} BuildRequires: openldap-servers >= %{openldap_version} %endif BuildRequires: openldap-clients >= %{openldap_version} BuildRequires: python3-pyasn1 >= 0.3.7 BuildRequires: python3-pyasn1-modules >= 0.1.5 %global _description\ python-ldap provides an object-oriented API for working with LDAP within\ Python programs. It allows access to LDAP directory servers by wrapping the\ OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks\ (including processing LDIF, LDAPURLs, LDAPv3 schema, etc.). %description %_description %package -n python3-ldap Summary: %{summary} Requires: openldap >= %{openldap_version} Requires: python3-pyasn1 >= 0.3.7 Requires: python3-pyasn1-modules >= 0.1.5 Requires: python3-setuptools %{?python_provide:%python_provide python3-ldap} Obsoletes: python3-pyldap < 3 Provides: python3-pyldap = %{version}-%{release} Provides: python3-pyldap%{?_isa} = %{version}-%{release} %description -n python3-ldap %_description %prep %autosetup -p1 -n %{name}-%{version}%{?prerelease} -N %autopatch -M100 -p 1 %if %{without servers} %autopatch 101 -p 1 %endif # Fix interpreter find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|' %build %py3_build %check PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m unittest discover -v -s Tests -p 't_*' %install %py3_install %files -n python3-ldap %license LICENCE %doc CHANGES README TODO Demo %{python3_sitearch}/_ldap.cpython-*.so %{python3_sitearch}/ldapurl.py* %{python3_sitearch}/ldif.py* %{python3_sitearch}/__pycache__/* %{python3_sitearch}/slapdtest/ %{python3_sitearch}/ldap/ %{python3_sitearch}/python_ldap-%{version}%{?prerelease}-py%{python3_version}.egg-info/ %changelog ## START: Generated by rpmautospec * Thu Oct 10 2024 Simon Pichugin - 3.4.4-7 - RHEL: Instead of not running the tests, skip tests requiring openldap- servers * Fri Jul 19 2024 Fedora Release Engineering - 3.4.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jun 27 2024 Yaakov Selkowitz - 3.4.4-5 - Disable tests on RHEL * Fri Jun 07 2024 Python Maint - 3.4.4-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 3.4.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 3.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Nov 22 2023 Simon Pichugin - 3.4.4-1 - Update to 3.4.4 version * Fri Jul 21 2023 Fedora Release Engineering - 3.4.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 3.4.3-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 3.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Sep 30 2022 Simon Pichugin - 3.4.3-1 - Update to 3.4.3 * Fri Jul 29 2022 Simon Pichugin - 3.4.2-1 - Update to 3.4.2 * Fri Jul 22 2022 Fedora Release Engineering - 3.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 3.4.0-4 - Rebuilt for Python 3.11 * Thu Feb 10 2022 Simon Pichugin - 3.4.0-3 - Always use libldap shared library * Fri Jan 21 2022 Fedora Release Engineering - 3.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Nov 26 2021 Christian Heimes - 3.4.0-1 - Update to 3.4.0, fixes RHBZ#2026947 * Fri Jul 23 2021 Fedora Release Engineering - 3.3.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jun 28 2021 Christian Heimes - 3.3.1-6 - Fix SASL get/set options on big endian platforms - Resolves: rhbz#1976824 * Fri Jun 04 2021 Python Maint - 3.3.1-5 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 3.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Jan 21 17:53:26 CET 2021 Christian Heimes - 3.3.1-3 - Run test suite without tox (#1918913) * Fri Nov 13 2020 Miro Hrončok - 3.3.1-2 - Use https in URL - Drop build dependency on python3-coverage * Thu Oct 22 2020 Christian Heimes - 3.3.1-1 - New upstream release 3.3.1 * Wed Jul 29 2020 Fedora Release Engineering - 3.1.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun May 24 2020 Miro Hrončok - 3.1.0-10 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 3.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Oct 23 2019 Miro Hrončok - 3.1.0-8 - Subpackage python2-ldap has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Thu Oct 03 2019 Miro Hrončok - 3.1.0-7 - Rebuilt for Python 3.8.0rc1 (#1748018) * Fri Aug 16 2019 Miro Hrončok - 3.1.0-6 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 3.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 3.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 3.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jun 18 2018 Miro Hrončok - 3.1.0-2 - Rebuilt for Python 3.7 * Fri May 25 2018 Christian Heimes - 3.1.0-1 - New upstream release 3.1.0 * Wed Mar 21 2018 Christian Heimes - 3.0.0-1 - New upstream release 3.0.0 * Fri Feb 09 2018 Fedora Release Engineering - 3.0.0-0.5.b4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 10 2018 Christian Heimes - 3.0.0-0.4.b4 - New upstream release 3.0.0b4 (RHBZ #1496470) * Wed Dec 20 2017 Christian Heimes - 3.0.0-0.3.b3 - New upstream release 3.0.0b3 (RHBZ #1496470) * Mon Dec 11 2017 Christian Heimes - 3.0.0-0.2.b2 - New upstream release 3.0.0b2 (RHBZ #1496470) - Require OpenLDAP with fix for NSS issue (see #1520990) * Mon Dec 04 2017 Christian Heimes - 0:3.0.0-0.1.b1 - New upstream release 3.0.0b1 (RHBZ #1496470) - Resolves RHBZ #1489184 - Enable unittests - Remove dsml module - Package python3-ldap, which obsoletes python3-pyldap * Wed Nov 08 2017 Christian Heimes - 0:2.4.25-9 - Fix issue in pyasn1 patch * Tue Nov 07 2017 Christian Heimes - 0:2.4.25-8 - Apply fix for pyasn1 >= 0.3 * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0:2.4.25-7 - Python 2 binary package renamed to python2-ldap See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Aug 03 2017 Fedora Release Engineering - 0:2.4.25-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0:2.4.25-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Jul 07 2017 Igor Gnatenko - 0:2.4.25-4 - Rebuild due to bug in RPM (RHBZ #1468476) * Sat Feb 11 2017 Fedora Release Engineering - 0:2.4.25-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jul 19 2016 Fedora Release Engineering - 0:2.4.25-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Apr 20 2016 Petr Spacek - 2.4.25-1 - New upstream release 2.4.25 * Thu Feb 04 2016 Fedora Release Engineering - 0:2.4.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0:2.4.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Sep 29 2014 Petr Spacek - 0:2.4.17-1 - New upstream release adds features required in bug 1122486 - Dependency on pyasn1-modules was added to fix bug 995545 * Thu Sep 25 2014 Petr Spacek - 0:2.4.16-1 - New upstream release fixes bug 1007820 - Dependency on pyasn1 was added to fix bug 995545 * Sun Aug 17 2014 Fedora Release Engineering - 0:2.4.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0:2.4.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0:2.4.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0:2.4.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0:2.4.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0:2.4.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Jan 02 2012 Jeroen van Meeuwen - 2.4.6-1 - New upstream release * Wed Feb 09 2011 Fedora Release Engineering - 0:2.3.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Sep 24 2010 Parag Nemade - 0:2.3.12-1 - Merge-review cleanup (#226343) * Thu Jul 22 2010 David Malcolm - 0:2.3.10-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Thu Jan 14 2010 Matthew Barnes - 0:2.3.10-1 - Update to 2.3.10 - Change source URI to pypi.python.org. * Fri Aug 21 2009 Tomas Mraz - 0:2.3.6-3 - rebuilt with new openssl * Sun Jul 26 2009 Fedora Release Engineering - 0:2.3.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Apr 01 2009 Matthew Barnes - 0:2.3.6-1 - Update to 2.3.6 * Fri Feb 27 2009 Matthew Barnes - 0:2.3.5-5 - Fix a build error. * Thu Feb 26 2009 Fedora Release Engineering - 0:2.3.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Jan 16 2009 Tomas Mraz - 0:2.3.5-3 - rebuild with new openssl * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0:2.3.5-2 - Rebuild for Python 2.6 * Wed Sep 3 2008 Tom "spot" Callaway - 0:2.3.5-1 - fix license tag - update to 2.3.5 * Sun Feb 17 2008 Matthew Barnes - 0:2.3.1-3.fc9 - Rebuild with GCC 4.3 * Wed Dec 05 2007 Matthew Barnes - 0:2.3.1-2.fc9 - Rebuild against new openssl. * Wed Oct 10 2007 Matthew Barnes - 0:2.3.1-1.fc8 - Update to 2.3.1 * Fri Jun 08 2007 Matthew Barnes - 0:2.3.0-1.fc8 - Update to 2.3 - Spec file cleanups. * Thu Dec 7 2006 Jeremy Katz - 0:2.2.0-3 - rebuild against python 2.5 * Wed Jul 12 2006 Jesse Keating - rebuild * Wed May 17 2006 Matthew Barnes - 2.2.0-2 - Put back the epoch line... happy beehive? * Mon May 15 2006 Matthew Barnes - 2.2.0-1 - Update to 2.2.0 - Update python-ldap-2.0.6-rpath.patch and rename it to python-ldap-2.2.0-dirs.patch. * Fri Feb 10 2006 Jesse Keating - 0:2.0.6-5.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 0:2.0.6-5.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Tue Nov 8 2005 Tomas Mraz - 2.0.6-5 - rebuilt with new openssl * Tue Mar 22 2005 Warren Togami - 2.0.6-4 - add LICENCE (#150842) - simplify python reqs - remove invalid rpath * Wed Mar 16 2005 Dan Williams - 0:2.0.6-2 - rebuilt to pick up new libssl.so.5 * Tue Feb 8 2005 David Malcolm - 0:2.0.6-1 - 2.0.6 * Tue Nov 16 2004 Nalin Dahyabhai - 0:2.0.1-3 - rebuild (#139161) * Mon Aug 30 2004 David Malcolm - 0:2.0.1-2 - Rewrote description; added requirement for openldap * Tue Aug 17 2004 David Malcolm - 0:2.0.1-1 - imported into Red Hat's packaging system from Fedora.us; set release to 1 * Wed Jun 30 2004 Panu Matilainen 0:2.0.1-0.fdr.1 - update to 2.0.1 * Sun Dec 07 2003 Panu Matilainen 0:2.0.0-0.fdr.0.4.pre16 - fix spec permissions + release tag order (bug 1099) * Sat Dec 6 2003 Ville Skyttä 0:2.0.0-0.fdr.0.pre16.3 - Stricter python version requirements. - BuildRequire openssl-devel. - Explicitly build *.pyo, install them as %%ghost. - Own more installed dirs. - Remove $RPM_BUILD_ROOT at start of %%install. * Wed Dec 03 2003 Panu Matilainen 0:2.0.0-0.fdr.0.pre16.2 - duh, build requires python-devel, not just python... * Wed Dec 03 2003 Panu Matilainen 0:2.0.0-0.fdr.0.pre16.1 - Initial Fedora packaging. ## END: Generated by rpmautospec