From a8c546ce04f3bb98aa2af4bb7c69ed04b06d118b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Tue, 11 Apr 2023 17:19:11 +0200 Subject: [PATCH] RPM: libtdeldap: fix heimdal detection on Fedora MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- redhat/libraries/libtdeldap/libtdeldap.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/redhat/libraries/libtdeldap/libtdeldap.spec b/redhat/libraries/libtdeldap/libtdeldap.spec index 190027607..878c2fbd0 100644 --- a/redhat/libraries/libtdeldap/libtdeldap.spec +++ b/redhat/libraries/libtdeldap/libtdeldap.spec @@ -176,6 +176,11 @@ if [ -d "/usr/include/openldap24" ]; then RPM_OPT_FLAGS="-I%{_includedir}/openldap24 -L%{_libdir}/openldap24 ${RPM_OPT_FLAGS}" fi +# heimdal pkgconfig (Fedora) +if [ -d "%{_libdir}/heimdal/lib/pkgconfig" ]; then + PKG_CONFIG_PATH="%{_libdir}/heimdal/lib/pkgconfig:${PKG_CONFIG_PATH}" +fi + if ! rpm -E %%cmake|grep -q "cd build"; then %__mkdir_p build cd build