summaryrefslogtreecommitdiffstats
path: root/php-pecl-xpass.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-09-16 08:47:09 +0200
committerRemi Collet <remi@php.net>2024-09-16 08:47:09 +0200
commitabd84698c6f7405a75a028150929119da385dc31 (patch)
tree495596c7a672186e74d6092765767f8d804535df /php-pecl-xpass.spec
parent7ed248369023455deb340f1e519cc425386c6f85 (diff)
use DESTDIR instead of INSTALL_ROOT
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