From 757719a6ca5befc5f60765d1d46b762d4be73599 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 16 Oct 2023 08:57:01 +0200 Subject: update to 3.1.0RC1 add patch for old libevent in EL-7 and EL-8 --- php-pecl-event.spec | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'php-pecl-event.spec') diff --git a/php-pecl-event.spec b/php-pecl-event.spec index 2f33373..5ff4ff0 100644 --- a/php-pecl-event.spec +++ b/php-pecl-event.spec @@ -33,8 +33,8 @@ # After 20-sockets.so %global ini_name 40-%{pecl_name}.ini %endif -%global upstream_version 3.0.8 -#global upstream_prever RC1 +%global upstream_version 3.1.0 +%global upstream_prever RC1 #global upstream_postver r1 %global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} %global _configure ../%{sources}/configure @@ -42,11 +42,14 @@ Summary: Provides interface to libevent library Name: %{?scl_prefix}php-pecl-%{pecl_name} Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}%{?upstream_postver:+%{upstream_postver}} -Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP-3.01 URL: https://pecl.php.net/package/event Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}%{?upstream_postver}.tgz +# For libevent < 2.1.10 +Patch0: %{pecl_name}-build.patch + BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel @@ -93,6 +96,8 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd %{sources} +%patch -P0 -p1 + # Sanity check, really often broken DIR=$(%{__php} -r 'echo "php" . PHP_MAJOR_VERSION;') #sed -e '/PHP_EVENT_VERSION/s/2.4.2/2.4.3/' -i $DIR/php_event.h @@ -175,6 +180,7 @@ done cd %{sources} %if "%{php_version}" < "7" rm tests/61-issue.phpt +rm tests/61-issue_php_pre_8_2_0.phpt rm tests/10-event-data-dtor.phpt rm tests/27-event-util-create-socket.phpt %endif @@ -249,6 +255,10 @@ fi %changelog +* Mon Oct 16 2023 Remi Collet - 3.1.0~RC1-1 +- update to 3.1.0RC1 +- add patch for old libevent in EL-7 and EL-8 + * Wed Aug 30 2023 Remi Collet - 3.0.8-3 - rebuild for PHP 8.3.0RC1 -- cgit