summaryrefslogtreecommitdiffstats
path: root/php-pecl-dio.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-01-23 08:44:54 +0100
committerRemi Collet <remi@php.net>2024-01-23 08:44:54 +0100
commit547660bf3e9d5c3eac6112d594b64bd13b01cdb6 (patch)
treebd383f9bb2151840933df3e38864e34039c0d97d /php-pecl-dio.spec
parent8c57d4b1ce719389caee2c343adfed87227c5808 (diff)
update to 0.2.2
Diffstat (limited to 'php-pecl-dio.spec')
-rw-r--r--php-pecl-dio.spec17
1 files changed, 13 insertions, 4 deletions
diff --git a/php-pecl-dio.spec b/php-pecl-dio.spec
index 8095531..b6e1dcb 100644
--- a/php-pecl-dio.spec
+++ b/php-pecl-dio.spec
@@ -8,6 +8,12 @@
#
%{?scl: %scl_package php-pecl-dio}
+# For PHP < 5.6 and EPEL-9
+%{!?__phpize: %global __phpize %{_bindir}/phpize}
+%{!?__ztsphpize: %global __ztsphpize %{_bindir}/zts-phpize}
+%{!?__phpconfig: %global __phpconfig %{_bindir}/php-config}
+%{!?__ztsphpconfig:%global __ztsphpconfig %{_bindir}/zts-php-config}
+
#global prever dev
%global pecl_name dio
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
@@ -21,8 +27,8 @@
Summary: Direct I/O functions
Name: %{?scl_prefix}php-pecl-%{pecl_name}
-Version: 0.2.1
-Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Version: 0.2.2
+Release: 1%{?dist}%{!?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
@@ -168,11 +174,11 @@ REPORT_EXIT_STATUS=1 \
: Minimal load test for ZTS extension
%{__ztsphp} --no-php-ini \
--define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
- --modules | grep %{pecl_name}
+ --modules | grep '^%{pecl_name}$'
: Upstream test suite for ZTS extension
TEST_PHP_EXECUTABLE=%{__ztsphp} \
-TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \
+TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
REPORT_EXIT_STATUS=1 \
%{__ztsphp} -n run-tests.php -q --show-diff
%endif
@@ -193,6 +199,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Tue Jan 23 2024 Remi Collet <remi@remirepo.net> - 0.2.2-1
+- update to 0.2.2
+
* Wed Oct 4 2023 Remi Collet <remi@remirepo.net> - 0.2.1-3
- build out of sources tree