summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-03-18 19:55:01 +0100
committerRemi Collet <fedora@famillecollet.com>2014-03-18 19:55:01 +0100
commit1e510d60b43d1713d3e4e28499b570e1836f8216 (patch)
tree2791c5bae662817e3cca8c2712273602abb74c5e
parenta1b5e5311d1efd0eea6e01969f563aff54094eae (diff)
php-pecl-krb5: minoir fix for SCL
-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