summaryrefslogtreecommitdiffstats
path: root/redhat/libraries/libtdeldap/libtdeldap.spec
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2021-01-30 23:53:31 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2021-01-30 23:53:31 +0100
commit24c06ffc5bdff8a2d02c893c0d03f5173eab5c8c (patch)
treec9490db2a17d1bcf985c898caf6d10c58c9d81e2 /redhat/libraries/libtdeldap/libtdeldap.spec
parent91820d56fc19f373e2ad40d9d21852eddcb81da7 (diff)
downloadtde-packaging-24c06ffc5bdff8a2d02c893c0d03f5173eab5c8c.tar.gz
tde-packaging-24c06ffc5bdff8a2d02c893c0d03f5173eab5c8c.zip
RPM: update build scripts for Fedora 33 / CentOS 8
Diffstat (limited to 'redhat/libraries/libtdeldap/libtdeldap.spec')
-rw-r--r--redhat/libraries/libtdeldap/libtdeldap.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/redhat/libraries/libtdeldap/libtdeldap.spec b/redhat/libraries/libtdeldap/libtdeldap.spec
index a6f82b0e5..e7c21c5b7 100644
--- a/redhat/libraries/libtdeldap/libtdeldap.spec
+++ b/redhat/libraries/libtdeldap/libtdeldap.spec
@@ -171,6 +171,11 @@ unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
+# openldap 2.4 includes (CentOS 5)
+if [ -d "/usr/include/openldap24" ]; then
+ RPM_OPT_FLAGS="-I%{_includedir}/openldap24 -L%{_libdir}/openldap24 ${RPM_OPT_FLAGS}"
+fi
+
if ! rpm -E %%cmake|grep -q "cd build"; then
%__mkdir_p build
cd build