summaryrefslogtreecommitdiffstats
path: root/redhat/applications/kcmldapcontroller
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2017-06-24 20:48:45 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2017-06-24 20:54:25 +0200
commitd640e1e7f363f7391558b124e299ffbe9f3a452c (patch)
treeda9ccb448f3c7781e00fb78c5c86e2248659371a /redhat/applications/kcmldapcontroller
parent3b001808e2317dc346815536ff8245327ced8b40 (diff)
downloadtde-packaging-d640e1e7f363f7391558b124e299ffbe9f3a452c.tar.gz
tde-packaging-d640e1e7f363f7391558b124e299ffbe9f3a452c.zip
RPM: fix LDAP related packages FTBFS on newer distributions
Diffstat (limited to 'redhat/applications/kcmldapcontroller')
-rw-r--r--redhat/applications/kcmldapcontroller/kcmldapcontroller-14.0.0.spec19
1 files changed, 15 insertions, 4 deletions
diff --git a/redhat/applications/kcmldapcontroller/kcmldapcontroller-14.0.0.spec b/redhat/applications/kcmldapcontroller/kcmldapcontroller-14.0.0.spec
index 9191e9b5a..f3f58611f 100644
--- a/redhat/applications/kcmldapcontroller/kcmldapcontroller-14.0.0.spec
+++ b/redhat/applications/kcmldapcontroller/kcmldapcontroller-14.0.0.spec
@@ -161,6 +161,19 @@ This is a TDE control center module to manage users, groups, and machines in Ker
unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"
+extra_includes="%{_includedir}"
+extra_libs="%{_libdir}"
+
+if [ -d "%{_includedir}/openldap24" ]; then
+ extra_includes="%{_includedir}/openldap24:${extra_includes}"
+ extra_libs="%{_libdir}/openldap24:${extra_libs}"
+fi
+
+if [ -d "%{_includedir}/heimdal" ]; then
+ extra_includes="%{_includedir}/heimdal:${extra_includes}"
+ extra_libs="%{_libdir}/heimdal:${extra_libs}"
+fi
+
%configure \
--prefix=%{tde_prefix} \
--exec-prefix=%{tde_prefix} \
@@ -178,10 +191,8 @@ export PATH="%{tde_bindir}:${PATH}"
--enable-rpath \
--disable-gcc-hidden-visibility \
\
-%if 0%{?rhel} == 5
- --with-extra-includes=/usr/include/openldap24 \
- --with-extra-libs=%{_libdir}/openldap24 \
-%endif
+ --with-extra-includes=${extra_includes} \
+ --with-extra-libs=${extra_libs} \
%__make %{?_smp_mflags}