diff options
| author | Remi Collet <remi@remirepo.net> | 2024-10-18 15:31:18 +0200 | 
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2024-10-18 15:31:18 +0200 | 
| commit | 26a4b8b1d738fde154019a135dceb46e9f693329 (patch) | |
| tree | f6f72f7cb7409e3c253c446cf9532198aa22f162 | |
| parent | 182f8fd60b232604765c5b41ab088767b2f141b3 (diff) | |
modernize
| -rw-r--r-- | php-ast.spec | 10 | 
1 files 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 | 
