summaryrefslogtreecommitdiffstats
path: root/php-pecl-pcov.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-pcov.spec')
-rw-r--r--php-pecl-pcov.spec15
1 files changed, 10 insertions, 5 deletions
diff --git a/php-pecl-pcov.spec b/php-pecl-pcov.spec
index 111cd01..a0abff5 100644
--- a/php-pecl-pcov.spec
+++ b/php-pecl-pcov.spec
@@ -17,7 +17,7 @@
Summary: Code coverage driver
Name: %{?scl_prefix}php-pecl-%{pecl_name}
Version: 1.0.11
-Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 5%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP-3.01
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{sources}.tgz
@@ -92,6 +92,8 @@ 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 \
@@ -99,7 +101,7 @@ cd ../NTS
--with-libdir=%{_lib} \
--with-php-config=%{__phpconfig}
-make %{?_smp_mflags}
+%make_build
%if %{with_zts}
cd ../ZTS
@@ -108,14 +110,14 @@ cd ../ZTS
--with-libdir=%{_lib} \
--with-php-config=%{__ztsphpconfig}
-make %{?_smp_mflags}
+%make_build
%endif
%install
%{?dtsenable}
-make -C NTS install INSTALL_ROOT=%{buildroot}
+%make_install -C NTS
# install config file
install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
@@ -124,7 +126,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 -C ZTS install INSTALL_ROOT=%{buildroot}
+%make_install -C ZTS
install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif
@@ -178,6 +180,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Tue Sep 24 2024 Remi Collet <remi@remirepo.net> - 1.0.11-5
+- rebuild for 8.4.0RC1
+
* Fri Jul 12 2024 Remi Collet <remi@remirepo.net> - 1.0.11-4
- add patch for PHP 8.4 from
https://github.com/krakjoe/pcov/pull/111