From 369aa34e8bae71db3147b8f2f8f60cfe20d98cf4 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 05 2022 11:10:09 +0000 Subject: import openldap-2.4.59-4.el9_0 --- diff --git a/SPECS/openldap.spec b/SPECS/openldap.spec index 6459ead..5befd2e 100644 --- a/SPECS/openldap.spec +++ b/SPECS/openldap.spec @@ -5,9 +5,11 @@ %global so_ver 2 +%bcond_with servers + Name: openldap Version: 2.4.59 -Release: 3%{?dist} +Release: 4%{?dist} Summary: LDAP support libraries License: OpenLDAP URL: http://www.openldap.org/ @@ -64,6 +66,10 @@ BuildRequires: make BuildRequires: cyrus-sasl-devel, openssl-devel, krb5-devel, unixODBC-devel BuildRequires: glibc-devel, libtool, libtool-ltdl-devel, groff, perl-interpreter, perl-devel, perl-generators, perl(ExtUtils::Embed) BuildRequires: gcc +BuildRequires: systemd +%{?systemd_requires} +BuildRequires: libdb-devel +BuildRequires: cracklib-devel %description OpenLDAP is an open source suite of LDAP (Lightweight Directory Access @@ -101,15 +107,12 @@ The openldap-compat package contains non-threaded variant of libldap which should not be used. Instead, applications should link to libldap_r which provides thread-safe variant with the very same API. +%if %{with servers} %package servers Summary: LDAP server License: OpenLDAP Requires: openldap%{?_isa} = %{version}-%{release}, libdb-utils Requires(pre): shadow-utils -BuildRequires: systemd -%{?systemd_requires} -BuildRequires: libdb-devel -BuildRequires: cracklib-devel # migrationtools (slapadd functionality): Provides: ldif2ldbm @@ -120,6 +123,8 @@ protocols for accessing directory services (usually phone book style information, but other information is possible) over the Internet, similar to the way DNS (Domain Name System) information is propagated over the Internet. This package contains the slapd server and related files. +%endif +# endif with servers %package clients Summary: LDAP client utilities @@ -366,6 +371,7 @@ rmdir %{buildroot}%{_localstatedir}/openldap-data %ldconfig_scriptlets +%if %{with servers} %pre servers # create ldap user and group @@ -464,7 +470,8 @@ if [ -f %{_sharedstatedir}/ldap/rpm_upgrade_libdb ]; then fi exit 0 - +%endif +# endif with servers %files %doc openldap-%{version}/ANNOUNCEMENT @@ -482,6 +489,7 @@ exit 0 %{_mandir}/man5/ldif.5* %{_mandir}/man5/ldap.conf.5* +%if %{with servers} %files servers %doc openldap-%{version}/contrib/slapd-modules/smbk5pwd/README.smbk5pwd %doc openldap-%{version}/doc/guide/admin/*.html @@ -540,6 +548,22 @@ exit 0 %{_mandir}/man5/slapo-*.5* # obsolete configuration %ghost %config(noreplace,missingok) %attr(0640,ldap,ldap) %{_sysconfdir}/openldap/slapd.conf +%else +%exclude %{_datadir}/openldap-servers/ +%exclude %{_libdir}/openldap/ +%exclude %{_libexecdir}/openldap/check-config.sh +%exclude %{_libexecdir}/openldap/functions +%exclude %{_libexecdir}/openldap/upgrade-db.sh +%exclude %{_mandir}/man5/slapd*.5* +%exclude %{_mandir}/man5/slapo-*.5* +%exclude %{_mandir}/man8/* +%exclude %{_sbindir}/sl* +%exclude %{_sysconfdir}/openldap/check_password.conf +%exclude %{_sysconfdir}/openldap/schema +%exclude %{_tmpfilesdir}/slapd.conf +%exclude %{_unitdir}/slapd.service +%endif +# endif with servers %files clients %{_bindir}/* @@ -556,6 +580,10 @@ exit 0 %{_libdir}/libldap-2.4*.so.* %changelog +* Wed Dec 15 2021 Viktor Ashirov - 2.4.59-4 +- Add "with servers" conditional + Related: rhbz#2030665 + * Thu Sep 23 2021 Simon Pichugin - 2.4.59-3 - Enable BIND_NOW for the linked library too. Related: rhbz#2002747