diff options
Diffstat (limited to 'php-pecl-http-message.spec')
-rw-r--r-- | php-pecl-http-message.spec | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/php-pecl-http-message.spec b/php-pecl-http-message.spec index e5d0473..690c268 100644 --- a/php-pecl-http-message.spec +++ b/php-pecl-http-message.spec @@ -1,6 +1,6 @@ # remirepo spec file for php-pecl-http-message # -# Copyright (c) 2019-2020 Remi Collet +# Copyright (c) 2019-2021 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -20,23 +20,27 @@ Summary: PSR-7 HTTP Message implementation Name: %{?sub_prefix}php-pecl-http-message -Version: 0.2.2 -Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 1.0.0 +Release: 1%{?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 -Patch1: https://patch-diff.githubusercontent.com/raw/improved-php-library/http-message/pull/4.patch +Patch1: https://patch-diff.githubusercontent.com/raw/improved-php-library/http-message/pull/7.patch +BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel > 7.2 +BuildRequires: %{?scl_prefix}php-devel >= 7.2 BuildRequires: %{?scl_prefix}php-pecl-psr-devel >= 0.6 BuildRequires: %{?scl_prefix}php-pear Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} +%if "%{php_version}" > "8.0" +Requires: %{?scl_prefix}php-psr%{?_isa} >= 1.2 +%else Requires: %{?scl_prefix}php-psr%{?_isa} >= 0.6 +%endif %{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} Provides: %{?scl_prefix}php-%{pecl_name} = %{version} @@ -58,12 +62,9 @@ Obsoletes: php74-pecl-%{pecl_name} <= %{version} %if "%{php_version}" > "8.0" Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "8.1" +Obsoletes: php81-pecl-%{pecl_name} <= %{version} %endif - -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter shared private -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} %endif @@ -93,8 +94,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 -%patch1 -p1 -b .pr4 +%patch1 -p1 -b .pr7 # Sanity check, really often broken extver=$(sed -n '/#define PHP_HTTP_MESSAGE_VERSION/{s/.* "//;s/".*$//;p}' php_http_message.h) @@ -243,6 +243,16 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Mon Dec 13 2021 Remi Collet <remi@remirepo.net> - 1.0.0-1 +- update to 1.0.0 +- drop patches merged upstream +- open https://github.com/improved-php-library/http-message/issues/5 + version 1.0.0 missing on pecl +- open https://github.com/improved-php-library/http-message/issues/6 + comptibility with psr 1.2.0 +- add patch for ext 1.2.0 from + https://github.com/improved-php-library/http-message/pull/7 + * Wed Sep 30 2020 Remi Collet <remi@remirepo.net> - 0.2.2-4 - rebuild for PHP 8.0.0RC1 - add patch from https://github.com/improved-php-library/http-message/pull/4 |