From 335507686ce0c559e680baf414b00c4625b58375 Mon Sep 17 00:00:00 2001 From: Simon Pichugin Date: Mon, 1 Dec 2025 20:52:43 -0800 Subject: [PATCH] Update to 3.4.5 version Update the spec to use pyproject macros Resolves: RHEL-129936 --- .gitignore | 1 + python-ldap.spec | 28 +++++++++++----------------- sources | 2 +- 3 files changed, 13 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index 4effb69..81543ba 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ python-ldap-2.3.10.tar.gz /python-ldap-3.4.2.tar.gz /python-ldap-3.4.3.tar.gz /python-ldap-3.4.4.tar.gz +/python_ldap-3.4.5.tar.gz diff --git a/python-ldap.spec b/python-ldap.spec index bf156b4..7c6dfe9 100644 --- a/python-ldap.spec +++ b/python-ldap.spec @@ -7,12 +7,12 @@ %global pypi_name python-ldap Name: python-ldap -Version: 3.4.4 +Version: 3.4.5 Release: %autorelease License: python-ldap Summary: An object-oriented API to access LDAP directory servers URL: https://python-ldap.org/ -Source0: %{pypi_source} +Source0: %{pypi_source python_ldap} # Conditionally applied paches, numbereed > 100 Patch101: 0101-Disable-openldap-servers-tests.patch @@ -23,14 +23,11 @@ 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\ @@ -57,7 +54,7 @@ Provides: python3-pyldap%{?_isa} = %{version}-%{release} %prep -%autosetup -p1 -n %{name}-%{version}%{?prerelease} -N +%autosetup -p1 -n python_ldap-%{version}%{?prerelease} -N %autopatch -p1 -M100 %if %{without servers} %autopatch -p1 101 @@ -67,8 +64,12 @@ Provides: python3-pyldap%{?_isa} = %{version}-%{release} find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|' +%generate_buildrequires +%pyproject_buildrequires + + %build -%py3_build +%pyproject_wheel %check @@ -76,18 +77,11 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m unittest discover -v %install -%py3_install +%pyproject_install +%pyproject_save_files -l ldap slapdtest ldapurl ldif _ldap -%files -n python3-ldap -%license LICENCE +%files -n python3-ldap -f %{pyproject_files} %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 %autochangelog diff --git a/sources b/sources index 02e948f..67032cf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-ldap-3.4.4.tar.gz) = f0e7c5af4399ebb7331e6b41008b4dd54193fc47d6c48d53a0c155bc6cf9735b45128ae06442abe59ffbaf2282ea1a804484923e886f8b457c57cc727210bdfc +SHA512 (python_ldap-3.4.5.tar.gz) = c2561b6ac6deb5ec10006767310414f1754eb010633fb670c0abc4c268ef5c15a3b84b049cc38b78bb56c80853de96d21263fa596067b9abe9501e58496f5bdb