summaryrefslogtreecommitdiffstats
path: root/php-pecl-parallel.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-parallel.spec')
-rw-r--r--php-pecl-parallel.spec44
1 files changed, 16 insertions, 28 deletions
diff --git a/php-pecl-parallel.spec b/php-pecl-parallel.spec
index a4b938b..7bcbfa1 100644
--- a/php-pecl-parallel.spec
+++ b/php-pecl-parallel.spec
@@ -1,27 +1,30 @@
# remirepo spec file for php-pecl-parallel
#
-# Copyright (c) 2019-2020 Remi Collet
+# Copyright (c) 2019-2022 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
-%{?scl: %scl_package php-pecl-pthreads}
+%{?scl: %scl_package php-pecl-parallel}
+
+%bcond_without tests
%global pecl_name parallel
%global ini_name 40-%{pecl_name}.ini
Summary: Parallel concurrency API
Name: %{?scl_prefix}php-pecl-%{pecl_name}
-Version: 1.1.4
+Version: 1.2.0
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%%{pecl_name}-%{version}.tgz
-BuildRequires: %{?scl_prefix}php-zts-devel > 7.2
+BuildRequires: %{?scl_prefix}php-zts-devel >= 8.0
BuildRequires: %{?scl_prefix}php-pear
-BuildRequires: gcc
+BuildRequires: make
+BuildRequires: %{?dtsprefix}gcc
BuildRequires: autoconf
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
@@ -32,29 +35,10 @@ Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
-Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
-Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
-
-%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
-# Other third party repo stuff
-Obsoletes: php72u-pecl-%{pecl_name} <= %{version}
-%if "%{php_version}" > "7.3"
-Obsoletes: php73-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "7.4"
-Obsoletes: php74-pecl-%{pecl_name} <= %{version}
-%endif
-%endif
-
-%if 0%{?fedora} < 20 && 0%{?rhel} < 7
-# Filter shared private
-%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
-%{?filter_setup}
-%endif
%description
-A succinct parallel concurrency API for PHP 7.
+A succinct parallel concurrency API for PHP.
This extension is only available for PHP in ZTS mode.
@@ -146,13 +130,13 @@ cd %{pecl_name}-%{version}
--define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
--modules | grep %{pecl_name}
+%if %{with tests}
: Upstream test suite for ZTS extension
TEST_PHP_EXECUTABLE=%{_bindir}/zts-php \
TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \
SKIP_ONLINE_TESTS=1 \
-NO_INTERACTION=1 \
-REPORT_EXIT_STATUS=1 \
-%{_bindir}/zts-php -n run-tests.php --show-diff
+%{_bindir}/zts-php -n -q run-tests.php --show-diff
+%endif
%files
@@ -165,6 +149,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Mon Oct 24 2022 Remi Collet <remi@remirepo.net> - 1.2.0-1
+- update to 1.2.0
+- raise dependency on PHP 8.0
+
* Thu Sep 17 2020 Remi Collet <remi@remirepo.net> - 1.1.4-1
- update to 1.1.4