Name: pgbouncer
Version: 1.25.0
-Release: 44PGDG%{?dist}
+Release: 45PGDG%{?dist}
Summary: Lightweight connection pooler for PostgreSQL
License: MIT and BSD
URL: https://www.pgbouncer.org/
Requires: libcares2 >= 1.19
%endif
-%if 0%{?suse_version} >= 1500
+%if 0%{?suse_version} == 1500
BuildRequires: openldap2-devel
-%else
+Requires: libldap-2_4-2
+%endif
+%if 0%{?suse_version} == 1600
+BuildRequires: openldap2-devel
+Requires: libldap-2
+%endif
+%if 0%{?fedora} >= 41 || 0%{?rhel} >= 9
BuildRequires: openldap-devel
+Requires: openldap
%endif
BuildRequires: systemd
%else
--with-cares --disable-evdns \
%endif
+ --with-ldap \
--with-systemd \
--with-pam
%attr(755,pgbouncer,pgbouncer) %dir /var/run/%{name}
%changelog
+* Thu Nov 13 2025 Devrim Gündüz <devrim@gunduz.org> - 1.25.0-45PGDG
+- Build with ldap support. Per report from Arthur Nascimento.
+
* Wed Nov 12 2025 Devrim Gündüz <devrim@gunduz.org> - 1.25.0-44PGDG
- Re-add systemd and pam support that I broke in ec52b384. Fixes
https://github.com/pgbouncer/pgbouncer/issues/1416