Update to 3.4.5 version

Update the spec to use pyproject macros

Resolves: RHEL-129936
This commit is contained in:
Simon Pichugin 2025-12-01 20:52:43 -08:00
parent 434125f999
commit 335507686c
3 changed files with 13 additions and 18 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@ python-ldap-2.3.10.tar.gz
/python-ldap-3.4.2.tar.gz /python-ldap-3.4.2.tar.gz
/python-ldap-3.4.3.tar.gz /python-ldap-3.4.3.tar.gz
/python-ldap-3.4.4.tar.gz /python-ldap-3.4.4.tar.gz
/python_ldap-3.4.5.tar.gz

View File

@ -7,12 +7,12 @@
%global pypi_name python-ldap %global pypi_name python-ldap
Name: python-ldap Name: python-ldap
Version: 3.4.4 Version: 3.4.5
Release: %autorelease Release: %autorelease
License: python-ldap License: python-ldap
Summary: An object-oriented API to access LDAP directory servers Summary: An object-oriented API to access LDAP directory servers
URL: https://python-ldap.org/ URL: https://python-ldap.org/
Source0: %{pypi_source} Source0: %{pypi_source python_ldap}
# Conditionally applied paches, numbereed > 100 # Conditionally applied paches, numbereed > 100
Patch101: 0101-Disable-openldap-servers-tests.patch Patch101: 0101-Disable-openldap-servers-tests.patch
@ -23,14 +23,11 @@ BuildRequires: openldap-devel >= %{openldap_version}
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: cyrus-sasl-devel BuildRequires: cyrus-sasl-devel
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools
# Test dependencies # Test dependencies
%if %{with servers} %if %{with servers}
BuildRequires: openldap-servers >= %{openldap_version} BuildRequires: openldap-servers >= %{openldap_version}
%endif %endif
BuildRequires: openldap-clients >= %{openldap_version} BuildRequires: openldap-clients >= %{openldap_version}
BuildRequires: python3-pyasn1 >= 0.3.7
BuildRequires: python3-pyasn1-modules >= 0.1.5
%global _description\ %global _description\
python-ldap provides an object-oriented API for working with LDAP within\ python-ldap provides an object-oriented API for working with LDAP within\
@ -57,7 +54,7 @@ Provides: python3-pyldap%{?_isa} = %{version}-%{release}
%prep %prep
%autosetup -p1 -n %{name}-%{version}%{?prerelease} -N %autosetup -p1 -n python_ldap-%{version}%{?prerelease} -N
%autopatch -p1 -M100 %autopatch -p1 -M100
%if %{without servers} %if %{without servers}
%autopatch -p1 101 %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}|' find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|'
%generate_buildrequires
%pyproject_buildrequires
%build %build
%py3_build %pyproject_wheel
%check %check
@ -76,18 +77,11 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m unittest discover -v
%install %install
%py3_install %pyproject_install
%pyproject_save_files -l ldap slapdtest ldapurl ldif _ldap
%files -n python3-ldap %files -n python3-ldap -f %{pyproject_files}
%license LICENCE
%doc CHANGES README TODO Demo %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 %changelog
%autochangelog %autochangelog

View File

@ -1 +1 @@
SHA512 (python-ldap-3.4.4.tar.gz) = f0e7c5af4399ebb7331e6b41008b4dd54193fc47d6c48d53a0c155bc6cf9735b45128ae06442abe59ffbaf2282ea1a804484923e886f8b457c57cc727210bdfc SHA512 (python_ldap-3.4.5.tar.gz) = c2561b6ac6deb5ec10006767310414f1754eb010633fb670c0abc4c268ef5c15a3b84b049cc38b78bb56c80853de96d21263fa596067b9abe9501e58496f5bdb