summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-pecl-krb5.spec5
1 files changed, 3 insertions, 2 deletions
diff --git a/php-pecl-krb5.spec b/php-pecl-krb5.spec
index 13ae93a..25c06db 100644
--- a/php-pecl-krb5.spec
+++ b/php-pecl-krb5.spec
@@ -7,6 +7,7 @@
# Please, preserve the changelog entries
#
%{?scl: %scl_package php-pecl-krb5}
+%{!?scl: %global _root_includedir %{_includedir}}
%{!?scl: %global _root_bindir %{_bindir}}
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
%{!?php_incldir: %global php_incldir %{_includedir}/php}
@@ -88,8 +89,8 @@ mv %{pecl_name}-%{version} NTS
cd NTS
# Workaroud for old libcom_err
-if [ -f %{_includedir}/et/com_err.h ]
-then cp %{_includedir}/et/com_err.h .
+if [ -f %{_root_includedir}/et/com_err.h ]
+then cp %{_root_includedir}/et/com_err.h .
fi
# Sanity check, really often broken