From 74cab3de25b2a003c8207cc4714759ddfa7a73bc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 3 Feb 2022 15:22:14 +0100 Subject: update to 1.6.0 raise dependency on clue/block-react 1.5 add dependency on fig/http-message-util --- composer.json | 9 +++++---- php-react-http.spec | 27 +++++++++++++++++++++------ 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 44387e5..4c9a038 100644 --- a/composer.json +++ b/composer.json @@ -28,6 +28,7 @@ "require": { "php": ">=5.3.0", "evenement/evenement": "^3.0 || ^2.0 || ^1.0", + "fig/http-message-util": "^1.1", "psr/http-message": "^1.0", "react/event-loop": "^1.2", "react/promise": "^2.3 || ^1.2.1", @@ -37,10 +38,10 @@ "ringcentral/psr7": "^1.2" }, "require-dev": { - "clue/block-react": "^1.1", - "clue/http-proxy-react": "^1.3", - "clue/reactphp-ssh-proxy": "^1.0", - "clue/socks-react": "^1.0", + "clue/block-react": "^1.5", + "clue/http-proxy-react": "^1.7", + "clue/reactphp-ssh-proxy": "^1.3", + "clue/socks-react": "^1.3", "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35" }, "autoload": { diff --git a/php-react-http.spec b/php-react-http.spec index f4711f7..88177ed 100644 --- a/php-react-http.spec +++ b/php-react-http.spec @@ -2,7 +2,7 @@ # # Fedora spec file for php-react-http # -# Copyright (c) 2017-2021 Shawn Iwinski +# Copyright (c) 2017-2022 Shawn Iwinski # # License: MIT # http://opensource.org/licenses/MIT @@ -12,16 +12,16 @@ %global github_owner reactphp %global github_name http -%global github_version 1.5.0 -%global github_commit 8a0fd7c0aa74f0db3008b1e47ca86c613cbb040e +%global github_version 1.6.0 +%global github_commit 59961cc4a5b14481728f07c591546be18fa3a5c7 %global composer_vendor react %global composer_project http # "php": ">=5.3.0" %global php_min_ver 5.3.0 -# "clue/block-react": "^1.1" -%global clue_block_react_min_ver 1.1 +# "clue/block-react": "^1.5" +%global clue_block_react_min_ver 1.5 %global clue_block_react_max_ver 2.0 # "clue/http-proxy-react": "^1.3", ignored as only used in examples # "clue/reactphp-ssh-proxy": "^1.0", ignored as only used in examples @@ -50,6 +50,9 @@ # "psr/http-message": "^1.0" %global psr_http_message_min_ver 1.0 %global psr_http_message_max_ver 2.0 +# "psr/http-message": "^1.0" +%global fig_http_message_util_min_ver 1.1 +%global fig_http_message_util_max_ver 2 # Build using "--without tests" to disable tests %global with_tests 0%{!?_without_tests:1} @@ -99,6 +102,7 @@ BuildRequires: (php-composer(react/socket) >= %{react_socket_min_ver} with php-c BuildRequires: (php-composer(react/stream) >= %{react_stream_min_ver} with php-composer(react/stream) < %{react_stream_max_ver}) BuildRequires: (php-composer(ringcentral/psr7) >= %{ringcentral_psr7_min_ver} with php-composer(ringcentral/psr7) < %{ringcentral_psr7_max_ver}) BuildRequires: (php-composer(psr/http-message) >= %{psr_http_message_min_ver} with php-composer(psr/http-message) < %{psr_http_message_max_ver}) +BuildRequires: (php-composer(fig/http-message-util) >= %{fig_http_message_util_min_ver} with php-composer(fig/http-message-util) < %{fig_http_message_util_max_ver}) %else BuildRequires: php-clue-block-react < %{clue_block_react_max_ver} BuildRequires: php-clue-block-react >= %{clue_block_react_min_ver} @@ -118,6 +122,8 @@ BuildRequires: php-ringcentral-psr7 < %{ringcentral_psr7_max_ver} BuildRequires: php-ringcentral-psr7 >= %{ringcentral_psr7_min_ver} BuildRequires: php-psr-http-message < %{psr_http_message_max_ver} BuildRequires: php-psr-http-message >= %{psr_http_message_min_ver} +BuildRequires: php-composer(fig/http-message-util) < %{fig_http_message_util_max_ver} +BuildRequires: php-composer(fig/http-message-util) >= %{fig_http_message_util_min_ver} %endif ## phpcompatinfo (computed from version 1.1.0) BuildRequires: php-reflection @@ -142,6 +148,7 @@ Requires: (php-composer(react/socket) >= %{react_socket_min_ver} with php-c Requires: (php-composer(react/stream) >= %{react_stream_min_ver} with php-composer(react/stream) < %{react_stream_max_ver}) Requires: (php-composer(ringcentral/psr7) >= %{ringcentral_psr7_min_ver} with php-composer(ringcentral/psr7) < %{ringcentral_psr7_max_ver}) Requires: (php-composer(psr/http-message) >= %{psr_http_message_min_ver} with php-composer(psr/http-message) < %{psr_http_message_max_ver}) +Requires: (php-composer(fig/http-message-util) >= %{fig_http_message_util_min_ver} with php-composer(fig/http-message-util) < %{fig_http_message_util_max_ver}) %else Requires: php-evenement < %{evenement_max_ver} Requires: php-evenement >= %{evenement_min_ver} @@ -159,6 +166,8 @@ Requires: php-ringcentral-psr7 < %{ringcentral_psr7_max_ver} Requires: php-ringcentral-psr7 >= %{ringcentral_psr7_min_ver} Requires: php-psr-http-message < %{psr_http_message_max_ver} Requires: php-psr-http-message >= %{psr_http_message_min_ver} +Requires: php-composer(fig/http-message-util) < %{fig_http_message_util_max_ver} +Requires: php-composer(fig/http-message-util) >= %{fig_http_message_util_min_ver} %endif # phpcompatinfo (computed from version 1.1.0) Requires: php-date @@ -212,6 +221,7 @@ require_once '%{phpdir}/Fedora/Autoloader/autoload.php'; '%{phpdir}/React/Stream/autoload.php', '%{phpdir}/RingCentral/Psr7/autoload.php', '%{phpdir}/Psr/Http/Message/autoload.php', + '%{phpdir}/Fig/Http/Message/autoload.php', )); AUTOLOAD @@ -242,7 +252,7 @@ FILTER="testSuccessfulResponseEmitsEnd|testPostDataReturnsData|testPostJsonRetur : Upstream tests RETURN_CODE=0 -for CMDARG in "php %{phpunit}" php73 php74 php80 php81; do +for CMDARG in "php %{phpunit}" php74 php80 php81; do if which $CMDARG; then set $CMDARG $1 ${2:-%{_bindir}/phpunit9} \ @@ -266,6 +276,11 @@ exit $RETURN_CODE %changelog +* Thu Feb 3 2022 Remi Collet - 1.6.0-1 +- update to 1.6.0 +- raise dependency on clue/block-react 1.5 +- add dependency on fig/http-message-util + * Thu Aug 5 2021 Remi Collet - 1.5.0-1 - update to 1.5.0 - raise dependency on react/socket 1.9 -- cgit