From b69132b4324b3ea5ce64ca151d5dde472f83bfab Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 1 Dec 2020 11:28:21 +0100 Subject: update to 2.11.0 (no change) raise dependency on PHP 7.3 switch to phpunit9 with phpspec/prophecy-phpunit --- composer.json | 15 ++++++--------- php-laminas-inputfilter.spec | 43 +++++++++++++++++++++++++++---------------- 2 files changed, 33 insertions(+), 25 deletions(-) diff --git a/composer.json b/composer.json index fe92618..bcc5e4d 100644 --- a/composer.json +++ b/composer.json @@ -19,26 +19,23 @@ "sort-packages": true }, "extra": { - "branch-alias": { - "dev-master": "2.10.x-dev", - "dev-develop": "2.11.x-dev" - }, "laminas": { "component": "Laminas\\InputFilter", "config-provider": "Laminas\\InputFilter\\ConfigProvider" } }, "require": { - "php": "^5.6 || ^7.0", + "php": "^7.3 || ~8.0.0", "laminas/laminas-filter": "^2.9.1", - "laminas/laminas-servicemanager": "^2.7.10 || ^3.3.1", - "laminas/laminas-stdlib": "^2.7 || ^3.0", + "laminas/laminas-servicemanager": "^3.3.1", + "laminas/laminas-stdlib": "^3.0", "laminas/laminas-validator": "^2.11", "laminas/laminas-zendframework-bridge": "^1.0" }, "require-dev": { "laminas/laminas-coding-standard": "~1.0.0", - "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.15", + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^9.4.2", "psr/http-message": "^1.0" }, "suggest": { @@ -65,6 +62,6 @@ "test-coverage": "phpunit --colors=always --coverage-clover clover.xml" }, "replace": { - "zendframework/zend-inputfilter": "self.version" + "zendframework/zend-inputfilter": "^2.10.1" } } diff --git a/php-laminas-inputfilter.spec b/php-laminas-inputfilter.spec index e74a362..091c9bb 100644 --- a/php-laminas-inputfilter.spec +++ b/php-laminas-inputfilter.spec @@ -7,7 +7,7 @@ # Please, preserve the changelog entries # %global bootstrap 0 -%global gh_commit b29ce8f512c966468eee37ea4873ae5fb545d00a +%global gh_commit 34ed067ae366a2171d6d174a04002e4eb17c166d %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner laminas %global gh_project laminas-inputfilter @@ -22,8 +22,8 @@ %endif Name: php-%{gh_project} -Version: 2.10.1 -Release: 2%{?dist} +Version: 2.11.0 +Release: 1%{?dist} Summary: %{namespace} Framework %{library} component License: BSD @@ -34,7 +34,7 @@ Source1: makesrc.sh BuildArch: noarch # Tests %if %{with_tests} -BuildRequires: php(language) >= 5.6 +BuildRequires: php(language) >= 7.3 BuildRequires: php-spl # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 @@ -45,10 +45,12 @@ BuildRequires: (php-autoloader(%{gh_owner}/laminas-validator) >= 2.11 BuildRequires: (php-autoloader(%{gh_owner}/laminas-zendframework-bridge) >= 1.0 with php-autoloader(%{gh_owner}/laminas-zendframework-bridge) < 2) # From composer, "require-dev": { # "laminas/laminas-coding-standard": "~1.0.0", -# "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.15", +# "phpspec/prophecy-phpunit": "^2.0", +# "phpunit/phpunit": "^9.4.2", # "psr/http-message": "^1.0" -BuildRequires: (php-composer(psr/http-message) >= 1.0 with php-composer(psr/http-message) < 2) -# remirepo:10 +BuildRequires: (php-composer(psr/http-message) >= 1.0 with php-composer(psr/http-message) < 2) +BuildRequires: (php-composer(phpspec/prophecy-phpunit) >= 2.0 with php-composer(phpspec/prophecy-phpunit) < 3) +# remirepo:9 %else BuildRequires: php-laminas-filter BuildRequires: php-laminas-servicemanager @@ -56,20 +58,21 @@ BuildRequires: php-laminas-stdlib BuildRequires: php-laminas-validator BuildRequires: php-laminas-zendframework-bridge BuildRequires: php-psr-http-message +BuildRequires: php-phpspec-prophecy-phpunit %endif -BuildRequires: phpunit7 >= 7.5 +BuildRequires: phpunit9 >= 9.4.2 %endif # Autoloader BuildRequires: php-fedora-autoloader-devel # From composer, "require": { -# "php": "^5.6 || ^7.0", +# "php": "^7.3 || ~8.0.0", # "laminas/laminas-filter": "^2.9.1", -# "laminas/laminas-servicemanager": "^2.7.10 || ^3.3.1", -# "laminas/laminas-stdlib": "^2.7 || ^3.0", +# "laminas/laminas-servicemanager": "^3.3.1", +# "laminas/laminas-stdlib": "^3.0", # "laminas/laminas-validator": "^2.11", # "laminas/laminas-zendframework-bridge": "^1.0" -Requires: php(language) >= 5.6 +Requires: php(language) >= 7.3 %if ! %{bootstrap} # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 @@ -96,8 +99,8 @@ Requires: php-spl Obsoletes: php-ZendFramework2-%{library} < 2.5 Provides: php-ZendFramework2-%{library} = %{version} # Compatibily ensure by the bridge -Obsoletes: php-zendframework-%{zf_name} < 2.10.1-99 -Provides: php-zendframework-%{zf_name} = %{version}-99 +Obsoletes: php-zendframework-%{zf_name} < 2.10.2 +Provides: php-zendframework-%{zf_name} = %{version} Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version} Provides: php-composer(zendframework/%{zf_name}) = %{version} Provides: php-autoloader(%{gh_owner}/%{gh_project}) = %{version} @@ -158,6 +161,9 @@ mkdir vendor cat << 'EOF' | tee vendor/autoload.php - 2.11.0-1 +- update to 2.11.0 (no change) +- raise dependency on PHP 7.3 +- switch to phpunit9 with phpspec/prophecy-phpunit + * Fri Jan 17 2020 Remi Collet - 2.10.1-2 - cleanup -- cgit