From 36dd3d37ea0ac77166833dec9a7b3b3d0c9aa28d Mon Sep 17 00:00:00 2001 From: yangfei Date: Thu, 19 Dec 2024 22:06:12 +0800 Subject: [PATCH] spec: add ldap package --- cyrus-sasl.spec | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/cyrus-sasl.spec b/cyrus-sasl.spec index 3a4fed0..b16f48f 100644 --- a/cyrus-sasl.spec +++ b/cyrus-sasl.spec @@ -6,7 +6,7 @@ Name: cyrus-sasl Version: 2.1.28 -Release: 4 +Release: 5 Summary: The Cyrus SASL API Implementation License: BSD with advertising @@ -73,6 +73,20 @@ Summary: Shared libraries needed by applications which use Cyrus SASL The %{name}-lib package contains shared libraries which are needed by applications which use the Cyrus SASL library. +%if ! %{bootstrap_cyrus_sasl} + +%package ldap +BuildRequires: openldap-devel +Requires: %{name}-lib%{?_isa} = %{version}-%{release} +Conflicts: %{name} < %{version}-%{release} +Summary: LDAP auxprop support for Cyrus SASL + +%description ldap +The %{name}-ldap package contains the Cyrus SASL plugin which supports using +a directory server, accessed using LDAP, for storing shared secrets. + +%endif + %package sql Summary: SQL auxprop support for Cyrus SASL Requires: %{name}-lib%{?_isa} = %{version}-%{release} @@ -218,7 +232,7 @@ getent passwd %{username} >/dev/null || useradd -r -g %{username} -d %{homedir} %dir %{_libdir}/sasl2/ %{_libdir}/sasl2/*plain*.so* %{_libdir}/sasl2/*login*.so* -%if ! %{bootstrap_cyrus_sasl} +%if %{bootstrap_cyrus_sasl} %{_libdir}/sasl2/*ldapdb*.so* %endif %{_libdir}/sasl2/*crammd5*.so* @@ -249,6 +263,11 @@ getent passwd %{username} >/dev/null || useradd -r -g %{username} -d %{homedir} %{_libdir}/libsasl*.*so %{_libdir}/pkgconfig/*.pc +%if ! %{bootstrap_cyrus_sasl} +%files ldap +%{_libdir}/sasl2/*ldapdb*.so* +%endif + %files sql %defattr(-,root,root) %{_libdir}/sasl2/*sql*.so* @@ -261,6 +280,9 @@ getent passwd %{username} >/dev/null || useradd -r -g %{username} -d %{homedir} %changelog +* Thu Dec 19 2024 yangfei - 2.1.28-5 +- spec: add ldap package + * Fri Oct 11 2024 yixiangzhike - 2.1.28-4 - backport upstream patch to fix char overflow -- Gitee