diff options
Diffstat (limited to 'redhat/libraries/libtdeldap/libtdeldap-14.0.0.spec')
-rw-r--r-- | redhat/libraries/libtdeldap/libtdeldap-14.0.0.spec | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/redhat/libraries/libtdeldap/libtdeldap-14.0.0.spec b/redhat/libraries/libtdeldap/libtdeldap-14.0.0.spec index 5e2d07ccf..6948e0743 100644 --- a/redhat/libraries/libtdeldap/libtdeldap-14.0.0.spec +++ b/redhat/libraries/libtdeldap/libtdeldap-14.0.0.spec @@ -88,12 +88,15 @@ BuildRequires: cyrus-sasl-devel %endif # OPENLDAP support -%if 0%{?rhel} || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} +%if 0%{?rhel} >= 6 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} BuildRequires: openldap-devel %endif %if 0%{?suse_version} BuildRequires: openldap2-devel %endif +%if 0%{?rhel} == 5 +BuildRequires: openldap24-libs-devel +%endif %description @@ -169,7 +172,12 @@ export PATH="%{tde_bindir}:${PATH}" --enable-final \ --enable-closure \ --enable-rpath \ - --disable-gcc-hidden-visibility + --disable-gcc-hidden-visibility \ + \ +%if 0%{?rhel} == 5 + --with-extra-includes=/usr/include/openldap24 \ + --with-extra-libs=/usr/lib/openldap24 \ +%endif %__make %{?_smp_mflags} |