From f5b78b7bd14a047a61e60b76ff0a500549118201 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 23 Nov 2021 08:34:21 +0100 Subject: update to 1.1.11 allow psr/cache v2 and v3 --- php-symfony-contracts.spec | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'php-symfony-contracts.spec') diff --git a/php-symfony-contracts.spec b/php-symfony-contracts.spec index c8c2986..75822e2 100644 --- a/php-symfony-contracts.spec +++ b/php-symfony-contracts.spec @@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit 011c20407c4b99d454f44021d023fb39ce23b73d +%global gh_commit cf2984f7a99bfae197f9c96f5a16a4041ff6ffb1 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner symfony %global gh_project contracts @@ -21,7 +21,7 @@ %global with_tests 0%{!?_without_tests:1} Name: php-%{pk_vendor}-%{pk_project} -Version: 1.1.10 +Version: 1.1.11 Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist} Summary: A set of abstractions extracted out of the Symfony @@ -42,7 +42,7 @@ BuildRequires: php-intl # "symfony/polyfill-intl-idn": "^1.10" # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >=8 -BuildRequires: (php-composer(psr/cache) >= 1.0 with php-composer(psr/cache) < 2) +BuildRequires: (php-composer(psr/cache) >= 1.0 with php-composer(psr/cache) < 4) BuildRequires: (php-composer(psr/container) >= 1.0 with php-composer(psr/container) < 2) # remirepo:4 %else @@ -57,7 +57,7 @@ BuildRequires: php-composer(fedora/autoloader) # From composer.json, "require": { # "php": ">=7.1.3" -# "psr/cache": "^1.0", +# "psr/cache": "^1.0|^2.0|^3.0", # "psr/container": "^1.0" Requires: php(language) >= 7.1.3 # From composer.json, "suggest": { @@ -69,7 +69,7 @@ Requires: php(language) >= 7.1.3 # "symfony/translation-implementation": "" # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >=8 -Requires: (php-composer(psr/cache) >= 1.0 with php-composer(psr/cache) < 2) +Requires: (php-composer(psr/cache) >= 1.0 with php-composer(psr/cache) < 4) Requires: (php-composer(psr/container) >= 1.0 with php-composer(psr/container) < 2) Recommends: (php-composer(psr/event-dispatcher) >= 1.0 with php-composer(psr/event-dispatcher) < 2) # remirepo:5 @@ -122,7 +122,11 @@ require_once '%{php_home}/Fedora/Autoloader/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4('%{ns_vendor}\\%{ns_project}\\', __DIR__); \Fedora\Autoloader\Dependencies::optional([ - '%{php_home}/Psr/Cache/autoload.php', + [ + '%{php_home}/Psr/Cache3/autoload.php', + '%{php_home}/Psr/Cache2/autoload.php', + '%{php_home}/Psr/Cache/autoload.php', + ], '%{php_home}/Psr/Container/autoload.php', '%{php_home}/Psr/EventDispatcher/autoload.php', ]); @@ -144,10 +148,11 @@ mkdir vendor cat << 'EOF' | tee vendor/autoload.php - 1.1.11-1 +- update to 1.1.11 +- allow psr/cache v2 and v3 + * Wed Sep 9 2020 Remi Collet - 1.1.10-1 - update to 1.1.10 -- cgit