summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-01-22 11:21:51 +0100
committerRemi Collet <fedora@famillecollet.com>2014-01-22 11:21:51 +0100
commit649f1905d4abfb6b6dc4b87ebc2253f6e71d6ba7 (patch)
tree4e2b1393c2d01dbc36442f04cbfb1199bce7adb6
parent0335e5a22639cad17cee8b8001a4806e429a3b9c (diff)
php-pecl-ssdeep: fix SCL build
-rw-r--r--php-pecl-ssdeep.spec13
1 files changed, 7 insertions, 6 deletions
diff --git a/php-pecl-ssdeep.spec b/php-pecl-ssdeep.spec
index 4f57ea9..f21cf16 100644
--- a/php-pecl-ssdeep.spec
+++ b/php-pecl-ssdeep.spec
@@ -6,10 +6,11 @@
#
# Please, preserve the changelog entries
#
-%{?scl: %scl_package php-pecl-ssdeep}
-%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
-%{!?__pecl: %global __pecl %{_bindir}/pecl}
-%{!?__php: %global __php %{_bindir}/php}
+%{?scl: %scl_package php-pecl-ssdeep}
+%{!?scl: %global _root_prefix %{_prefix}}
+%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
+%{!?__pecl: %global __pecl %{_bindir}/pecl}
+%{!?__php: %global __php %{_bindir}/php}
%global with_zts 0%{?__ztsphp:1}
%global pecl_name ssdeep
@@ -109,7 +110,7 @@ EOF
cd NTS
%{_bindir}/phpize
%configure \
- --with-ssdeep=%{_prefix} \
+ --with-ssdeep=%{_root_prefix} \
--with-php-config=%{_bindir}/php-config \
--with-libdir=%{_lib}
make %{?_smp_mflags}
@@ -118,7 +119,7 @@ make %{?_smp_mflags}
cd ../ZTS
%{_bindir}/zts-phpize
%configure \
- --with-ssdeep=%{_prefix} \
+ --with-ssdeep=%{_root_prefix} \
--with-php-config=%{_bindir}/zts-php-config \
--with-libdir=%{_lib}
make %{?_smp_mflags}