summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-04-20 11:24:29 +0200
committerRemi Collet <remi@php.net>2023-04-20 11:24:29 +0200
commit6c02ef144ba41c37fe308a38a039635e1eb71932 (patch)
tree149f24632d10ece2cc4adb1160b5706025fd18ad
parent9b38a424f00a3bb000234ed7a2933a0191678d74 (diff)
update to 1.7.0
raise dependency on psr/http-message 1.1 and allow 2.0 raise dependency on PHP 7.2
-rw-r--r--composer.json8
-rw-r--r--php-nyholm-psr7.spec34
2 files changed, 25 insertions, 17 deletions
diff --git a/composer.json b/composer.json
index 680459c..470c937 100644
--- a/composer.json
+++ b/composer.json
@@ -15,14 +15,14 @@
}
],
"require": {
- "php": ">=7.1",
- "psr/http-message": "^1.0",
+ "php": ">=7.2",
+ "psr/http-message": "^1.1 || ^2.0",
"php-http/message-factory": "^1.0",
"psr/http-factory": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^7.5 || 8.5 || 9.4",
- "php-http/psr7-integration-tests": "^1.0",
+ "php-http/psr7-integration-tests": "^1.0@dev",
"http-interop/http-factory-tests": "^0.9",
"symfony/error-handler": "^4.4"
},
@@ -43,7 +43,7 @@
},
"extra": {
"branch-alias": {
- "dev-master": "1.6-dev"
+ "dev-master": "1.7-dev"
}
}
}
diff --git a/php-nyholm-psr7.spec b/php-nyholm-psr7.spec
index 4400565..301076a 100644
--- a/php-nyholm-psr7.spec
+++ b/php-nyholm-psr7.spec
@@ -8,7 +8,7 @@
#
%global bootstrap 0
# github
-%global gh_commit e874c8c4286a1e010fb4f385f3a55ac56a05cc93
+%global gh_commit ed7cf98f6562831dbc3c962406b5e49dc8179c8c
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner Nyholm
%global gh_project psr7
@@ -31,7 +31,7 @@
%global http_factory_tests_short %(c=%{http_factory_tests_commit}; echo ${c:0:7})
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 1.6.1
+Version: 1.7.0
Release: 1%{?dist}
Summary: A fast PHP7 implementation of PSR-7
@@ -45,26 +45,26 @@ Source2: https://github.com/php-http/psr7-integration-tests/archive/%{psr
Source3: https://github.com/http-interop/http-factory-tests/archive/%{http_factory_tests_commit}/%{name}-factory-tests-%{http_factory_tests_short}.tar.gz
BuildArch: noarch
-BuildRequires: php(language) >= 7.1
+BuildRequires: php(language) >= 7.2
BuildRequires: php-pcre
BuildRequires: php-spl
%if %{with tests}
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-BuildRequires: (php-composer(psr/http-message) >= 1.0 with php-composer(psr/http-message) < 2)
+BuildRequires: (php-composer(psr/http-message) >= 1.1 with php-composer(psr/http-message) < 3)
BuildRequires: (php-composer(php-http/message-factory) >= 1.0 with php-composer(php-http/message-factory) < 2)
BuildRequires: (php-composer(psr/http-factory) >= 1.0 with php-composer(psr/http-factory) < 2)
BuildRequires: (php-composer(symfony/error-handler) >= 4.4 with php-composer(symfony/error-handler) < 5)
# remirepo:6
%else
-BuildRequires: php-psr-http-message
+BuildRequires: php-psr-http-message >= 1.1
BuildRequires: php-http-message-factory
BuildRequires: php-psr-http-factory
BuildRequires: php-symfony4-error-handler >= 4.4
%endif
# from composer.json, "require-dev": {
# "phpunit/phpunit": "^7.5 || 8.5 || 9.4",
-# "php-http/psr7-integration-tests": "^1.0",
+# "php-http/psr7-integration-tests": "^1.0@dev",
# "http-interop/http-factory-tests": "^0.9",
# "symfony/error-handler": "^4.4"
%global phpunit %{_bindir}/phpunit9
@@ -74,19 +74,19 @@ BuildRequires: phpunit9 >= 9.4
BuildRequires: php-fedora-autoloader-devel >= 1.0.0
# from composer.json, "require": {
-# "php": ">=7.1",
-# "psr/http-message": "^1.0",
+# "php": ">=7.2",
+# "psr/http-message": "^1.1 || || ^2.0",
# "php-http/message-factory": "^1.0",
# "psr/http-factory": "^1.0"
-Requires: php(language) >= 7.1
+Requires: php(language) >= 7.2
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-Requires: (php-composer(psr/http-message) >= 1.0 with php-composer(psr/http-message) < 2)
+Requires: (php-composer(psr/http-message) >= 1.1 with php-composer(psr/http-message) < 3)
Requires: (php-composer(php-http/message-factory) >= 1.0 with php-composer(php-http/message-factory) < 2)
Requires: (php-composer(psr/http-factory) >= 1.0 with php-composer(psr/http-factory) < 2)
# remirepo:5
%else
-Requires: php-psr-http-message
+Requires: php-psr-http-message >= 1.1
Requires: php-http-message-factory
Requires: php-psr-http-factory
%endif
@@ -113,11 +113,14 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php
%build
# Generate the Autoloader
-phpab --template fedora --output src/autoload.php src
+phpab --tolerant --template fedora --output src/autoload.php src
cat << 'EOF' | tee -a src/autoload.php
\Fedora\Autoloader\Dependencies::required([
- '%{_datadir}/php/Psr/Http/Message/autoload.php',
+ [
+ '%{_datadir}/php/Psr/Http/Message2/autoload.php',
+ '%{_datadir}/php/Psr/Http/Message/autoload.php',
+ ],
'%{_datadir}/php/Http/Message/autoload.php',
'%{_datadir}/php/Psr/Http/Message/http-factory-autoload.php',
]);
@@ -177,6 +180,11 @@ exit $ret
%changelog
+* Thu Apr 20 2023 Remi Collet <remi@remirepo.net> - 1.7.0-1
+- update to 1.7.0
+- raise dependency on psr/http-message 1.1 and allow 2.0
+- raise dependency on PHP 7.2
+
* Wed Apr 19 2023 Remi Collet <remi@remirepo.net> - 1.6.1-1
- update to 1.6.1