- add bind-libbind-devel and libtool-ltdl-devel buildprereqs

- add an async start_tls backport in a non-default location (%{nss_ldap_libdir})
This commit is contained in:
Nalin Dahyabhai 2005-03-01 21:40:56 +00:00
parent 11d32944c0
commit f7562c16f0
2 changed files with 61 additions and 2 deletions

9
README.nss_ldap Normal file
View File

@ -0,0 +1,9 @@
These files are here specifically for use in building the nss_ldap package,
and should not be used for any other purpose.
They contain a backported patch which adds two functions which nss_ldap can
use to avoid blocking in one particular use case, but which are not included
in the 2.2 branch of OpenLDAP.
When the openldap package updates to 2.3, these libraries will simply
disappear.

View File

@ -4,6 +4,9 @@
%define version_20 2.0.27 %define version_20 2.0.27
%define version_21 2.1.30 %define version_21 2.1.30
%define version_22 2.2.23 %define version_22 2.2.23
%define nss_ldap_prefix %{_libdir}/nss_ldap-openldap
%define nss_ldap_includedir %{nss_ldap_prefix}/include
%define nss_ldap_libdir %{nss_ldap_prefix}/%{_lib}
%define evolution_connector_prefix %{_libdir}/evolution-openldap %define evolution_connector_prefix %{_libdir}/evolution-openldap
%define evolution_connector_includedir %{evolution_connector_prefix}/include %define evolution_connector_includedir %{evolution_connector_prefix}/include
%define evolution_connector_libdir %{evolution_connector_prefix}/%{_lib} %define evolution_connector_libdir %{evolution_connector_prefix}/%{_lib}
@ -14,7 +17,7 @@
Summary: The configuration files, libraries, and documentation for OpenLDAP. Summary: The configuration files, libraries, and documentation for OpenLDAP.
Name: openldap Name: openldap
Version: %{version_22} Version: %{version_22}
Release: 2 Release: 3
License: OpenLDAP License: OpenLDAP
Group: System Environment/Daemons Group: System Environment/Daemons
Source0: ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/openldap-%{version_22}.tgz Source0: ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/openldap-%{version_22}.tgz
@ -49,11 +52,12 @@ Patch24: MigrationTools-26-suffix.patch
Patch25: MigrationTools-44-schema.patch Patch25: MigrationTools-44-schema.patch
Patch26: MigrationTools-45-noaliases.patch Patch26: MigrationTools-45-noaliases.patch
Patch40: openldap-ntlm.diff Patch40: openldap-ntlm.diff
Patch41: openldap-2.2.23-start_tls-async.patch
URL: http://www.openldap.org/ URL: http://www.openldap.org/
BuildRoot: %{_tmppath}/%{name}-%{version_22}-root BuildRoot: %{_tmppath}/%{name}-%{version_22}-root
BuildPreReq: cyrus-sasl-devel >= 2.1, gdbm-devel, libtool >= 1.5.6-2, krb5-devel BuildPreReq: cyrus-sasl-devel >= 2.1, gdbm-devel, libtool >= 1.5.6-2, krb5-devel
BuildPreReq: openssl-devel, pam-devel, perl, pkgconfig, tcp_wrappers, BuildPreReq: openssl-devel, pam-devel, perl, pkgconfig, tcp_wrappers,
BuildPreReq: unixODBC-devel BuildPreReq: unixODBC-devel, bind-libbind-devel, libtool-ltdl-devel
Requires: cyrus-sasl, cyrus-sasl-md5, glibc >= 2.2.3-48, mktemp Requires: cyrus-sasl, cyrus-sasl-md5, glibc >= 2.2.3-48, mktemp
%description %description
@ -164,6 +168,16 @@ fi
pushd evo-openldap-%{version_22} pushd evo-openldap-%{version_22}
%patch40 -p0 -b .evolution-ntlm %patch40 -p0 -b .evolution-ntlm
popd popd
# Set up a build tree for a static version of libldap with async start_tls
# support, which nss_ldap can use to avoid blocking if a server is accepting
# connections but is otherwise unresponsive.
if ! cp -al openldap-%{version_22} nss_ldap-openldap-%{version_22} ; then
rm -fr nss_ldap-openldap-%{version_22}
cp -a openldap-%{version_22} nss_ldap-openldap-%{version_22}
fi
pushd nss_ldap-openldap-%{version_22}
%patch41 -p0 -b .start_tls
popd
pushd MigrationTools-%{migtools_version} pushd MigrationTools-%{migtools_version}
%patch21 -p1 -b .instdir %patch21 -p1 -b .instdir
@ -380,6 +394,21 @@ build \
--includedir=%{evolution_connector_includedir} \ --includedir=%{evolution_connector_includedir} \
--libdir=%{evolution_connector_libdir} --libdir=%{evolution_connector_libdir}
popd popd
# Build nss_ldap-specific clients just as we would normal clients, except with
# a different installation directory in mind and no shared libraries.
pushd nss_ldap-openldap-%{version_22}
build \
--disable-slapd \
--disable-slurpd \
--disable-shared \
--disable-dynamic \
--enable-static \
--without-kerberos \
--with-cyrus-sasl \
--with-pic \
--includedir=%{nss_ldap_includedir} \
--libdir=%{nss_ldap_libdir}
popd
%install %install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
@ -442,6 +471,15 @@ install -m644 \
$RPM_SOURCE_DIR/README.evolution \ $RPM_SOURCE_DIR/README.evolution \
$RPM_BUILD_ROOT/%{evolution_connector_prefix}/ $RPM_BUILD_ROOT/%{evolution_connector_prefix}/
popd popd
pushd nss_ldap-openldap-%{version_22}
make install DESTDIR=$RPM_BUILD_ROOT \
includedir=%{nss_ldap_includedir} \
libdir=%{nss_ldap_libdir} \
LIBTOOL="$libtool"
install -m644 \
$RPM_SOURCE_DIR/README.nss_ldap \
$RPM_BUILD_ROOT/%{nss_ldap_prefix}/
popd
pushd openldap-%{version_22}/build-clients pushd openldap-%{version_22}/build-clients
make install DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} LIBTOOL="$libtool" make install DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} LIBTOOL="$libtool"
popd popd
@ -493,6 +531,8 @@ rm -f $RPM_BUILD_ROOT/%{_datadir}/openldap/migration/*.{instdir,simple,schema,mk
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT/%{evolution_connector_libdir}/*.la rm -f $RPM_BUILD_ROOT/%{evolution_connector_libdir}/*.la
rm -f $RPM_BUILD_ROOT/%{evolution_connector_libdir}/*.so* rm -f $RPM_BUILD_ROOT/%{evolution_connector_libdir}/*.so*
rm -f $RPM_BUILD_ROOT/%{nss_ldap_libdir}/*.la
rm -f $RPM_BUILD_ROOT/%{nss_ldap_libdir}/*.so*
rm -f $RPM_BUILD_ROOT/%{_sbindir}/openldap/*.a rm -f $RPM_BUILD_ROOT/%{_sbindir}/openldap/*.a
rm -f $RPM_BUILD_ROOT/%{_sbindir}/openldap/*.so rm -f $RPM_BUILD_ROOT/%{_sbindir}/openldap/*.so
@ -638,8 +678,18 @@ fi
%attr(0644,root,root) %{evolution_connector_includedir}/*.h %attr(0644,root,root) %{evolution_connector_includedir}/*.h
%attr(0755,root,root) %dir %{evolution_connector_libdir} %attr(0755,root,root) %dir %{evolution_connector_libdir}
%attr(0644,root,root) %{evolution_connector_libdir}/*.a %attr(0644,root,root) %{evolution_connector_libdir}/*.a
%attr(0755,root,root) %dir %{nss_ldap_prefix}
%attr(0644,root,root) %{nss_ldap_prefix}/README*
%attr(0755,root,root) %dir %{nss_ldap_includedir}
%attr(0644,root,root) %{nss_ldap_includedir}/*.h
%attr(0755,root,root) %dir %{nss_ldap_libdir}
%attr(0644,root,root) %{nss_ldap_libdir}/*.a
%changelog %changelog
* Tue Mar 1 2005 Nalin Dahyabhai <nalin@redhat.com> 2.2.23-3
- add bind-libbind-devel and libtool-ltdl-devel buildprereqs
- add an async start_tls backport in a non-default location (%%{nss_ldap_libdir})
* Tue Mar 1 2005 Tomas Mraz <tmraz@redhat.com> 2.2.23-2 * Tue Mar 1 2005 Tomas Mraz <tmraz@redhat.com> 2.2.23-2
- rebuild with openssl-0.9.7e - rebuild with openssl-0.9.7e