From 562049cd694f6dd0927b9880227fc4f6da008839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Wed, 5 Aug 2015 20:25:18 +0200 Subject: RPM Packaging: massive update --- .../kcmldapcontroller/kcmldapcontroller-14.0.0.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'redhat/applications/kcmldapcontroller') diff --git a/redhat/applications/kcmldapcontroller/kcmldapcontroller-14.0.0.spec b/redhat/applications/kcmldapcontroller/kcmldapcontroller-14.0.0.spec index db2fb485f..f44b382cf 100644 --- a/redhat/applications/kcmldapcontroller/kcmldapcontroller-14.0.0.spec +++ b/redhat/applications/kcmldapcontroller/kcmldapcontroller-14.0.0.spec @@ -78,12 +78,15 @@ BuildRequires: brp-check-trinity %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 Requires: trinity-kcontrol-ldap-controller = %{?epoch:%{epoch}:}%{version}-%{release} @@ -156,7 +159,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} -- cgit v1.2.1