From 0d8651d95a8512841ee49b735315b2720a97f1fe Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 1 Sep 2020 11:30:06 +0200 Subject: add patch for PHP 8 from https://github.com/improved-php-library/http-message/pull/3 --- php-pecl-http-message.spec | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'php-pecl-http-message.spec') diff --git a/php-pecl-http-message.spec b/php-pecl-http-message.spec index 806645c..0647ac2 100644 --- a/php-pecl-http-message.spec +++ b/php-pecl-http-message.spec @@ -21,11 +21,13 @@ Summary: PSR-7 HTTP Message implementation Name: %{?sub_prefix}php-pecl-http-message Version: 0.2.2 -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Patch0: https://patch-diff.githubusercontent.com/raw/improved-php-library/http-message/pull/3.patch + BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel > 7.2 BuildRequires: %{?scl_prefix}php-pecl-psr-devel >= 0.6 @@ -46,14 +48,14 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{rele %if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} # Other third party repo stuff Obsoletes: php72u-pecl-%{pecl_name} <= %{version} -Obsoletes: php72w-pecl-%{pecl_name} <= %{version} %if "%{php_version}" > "7.3" Obsoletes: php73-pecl-%{pecl_name} <= %{version} -Obsoletes: php73w-pecl-%{pecl_name} <= %{version} %endif %if "%{php_version}" > "7.4" Obsoletes: php74-pecl-%{pecl_name} <= %{version} -Obsoletes: php74w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "8.0" +Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif %endif @@ -90,6 +92,7 @@ mv %{pecl_name}-%{version}%{?prever} NTS %{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml} cd NTS +%patch0 -p1 -b .pr3 # Sanity check, really often broken extver=$(sed -n '/#define PHP_HTTP_MESSAGE_VERSION/{s/.* "//;s/".*$//;p}' php_http_message.h) @@ -238,6 +241,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Tue Sep 1 2020 Remi Collet - 0.2.2-2 +- add patch for PHP 8 from + https://github.com/improved-php-library/http-message/pull/3 + * Tue Aug 25 2020 Remi Collet - 0.2.2-1 - update to 0.2.2 -- cgit