summaryrefslogtreecommitdiffstats
path: root/php-pecl-xpass.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-xpass.spec')
-rw-r--r--php-pecl-xpass.spec5
1 files changed, 3 insertions, 2 deletions
diff --git a/php-pecl-xpass.spec b/php-pecl-xpass.spec
index 7a063d3..1d5f07b 100644
--- a/php-pecl-xpass.spec
+++ b/php-pecl-xpass.spec
@@ -87,6 +87,7 @@ EOF
cd %{sources}
%{__phpize}
+sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
cd ../NTS
%configure \
@@ -108,7 +109,7 @@ cd ../ZTS
%install
%{?dtsenable}
-%make_install -C NTS INSTALL_ROOT=%{buildroot}
+%make_install -C NTS
# install config file
install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
@@ -117,7 +118,7 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
%if %{with_zts}
-%make_install -C ZTS INSTALL_ROOT=%{buildroot}
+%make_install -C ZTS
install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif