From 26a4b8b1d738fde154019a135dceb46e9f693329 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 18 Oct 2024 15:31:18 +0200 Subject: modernize --- php-ast.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/php-ast.spec b/php-ast.spec index 7f730a9..2a8d7d6 100644 --- a/php-ast.spec +++ b/php-ast.spec @@ -80,19 +80,21 @@ EOF cd %{sources} %{__phpize} +[ -f Makefile.global ] && GLOBAL=Makefile.global || GLOBAL=build/Makefile.global +sed -e 's/INSTALL_ROOT/DESTDIR/' -i $GLOBAL cd ../NTS %configure \ --with-php-config=%{__phpconfig} \ --enable-ast -make %{?_smp_mflags} +%make_build %if %{with_zts} cd ../ZTS %configure \ --with-php-config=%{__ztsphpconfig} \ --enable-ast -make %{?_smp_mflags} +%make_build %endif @@ -103,12 +105,12 @@ make %{?_smp_mflags} install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml # Install the NTS stuff -make -C NTS install INSTALL_ROOT=%{buildroot} +%make_install -C NTS install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} %if %{with_zts} # Install the ZTS stuff -make -C ZTS install INSTALL_ROOT=%{buildroot} +%make_install -C ZTS install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -- cgit