diff options
-rw-r--r-- | composer.json | 28 | ||||
-rw-r--r-- | php-laminas-server.spec | 25 |
2 files changed, 30 insertions, 23 deletions
diff --git a/composer.json b/composer.json index 1b18fae..83f07d9 100644 --- a/composer.json +++ b/composer.json @@ -16,24 +16,28 @@ "forum": "https://discourse.laminas.dev" }, "config": { - "allow-plugins": { - "dealerdirect/phpcodesniffer-composer-installer": true - }, + "sort-packages": true, "platform": { - "php": "7.4.99" + "php": "8.0.99" }, - "sort-packages": true + "allow-plugins": { + "composer/package-versions-deprecated": true, + "dealerdirect/phpcodesniffer-composer-installer": true + } + }, + "extra": { }, "require": { - "php": "^7.4 || ~8.0.0 || ~8.1.0", + "php": "~8.0.0 || ~8.1.0 || ~8.2.0", "laminas/laminas-code": "^3.5.1 || ^4.0.0", - "laminas/laminas-stdlib": "^3.3.1" + "laminas/laminas-stdlib": "^3.3.1", + "laminas/laminas-zendframework-bridge": "^1.2.0" }, "require-dev": { - "laminas/laminas-coding-standard": "^2.1.4", + "laminas/laminas-coding-standard": "~1.0.0", "phpunit/phpunit": "^9.5.5", - "psalm/plugin-phpunit": "^0.18.0", - "vimeo/psalm": "^5.0.0" + "psalm/plugin-phpunit": "^0.15.1", + "vimeo/psalm": "^4.6.4" }, "autoload": { "psr-4": { @@ -45,6 +49,7 @@ "LaminasTest\\Server\\": "test/" }, "files": [ + "test/Reflection/TestAsset/functions.php", "test/TestAsset/reflectionTestFunction.php" ] }, @@ -58,5 +63,8 @@ "static-analysis": "psalm --shepherd --stats", "test": "phpunit --colors=always", "test-coverage": "phpunit --colors=always --coverage-clover clover.xml" + }, + "replace": { + "zendframework/zend-server": "^2.8.1" } } diff --git a/php-laminas-server.spec b/php-laminas-server.spec index 9655117..15a464f 100644 --- a/php-laminas-server.spec +++ b/php-laminas-server.spec @@ -7,7 +7,7 @@ # Please, preserve the changelog entries # %global bootstrap 0 -%global gh_commit 572ce4194cb9024a06be2964d5be8c628a93ee66 +%global gh_commit c249f0638c8bdd67305509b7173bd535c21d109d %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner laminas %global gh_project laminas-server @@ -22,7 +22,7 @@ %endif Name: php-%{gh_project} -Version: 2.13.0 +Version: 2.12.0 Release: 1%{?dist} Summary: Laminas Framework %{library} component @@ -34,15 +34,15 @@ Source1: makesrc.sh BuildArch: noarch # Tests %if %{with_tests} -BuildRequires: php(language) >= 7.4 +BuildRequires: php(language) >= 8.0 BuildRequires: php-pcre BuildRequires: php-spl BuildRequires: php-reflection # From composer, "require-dev": { -# "laminas/laminas-coding-standard": "~2.1.4", +# "laminas/laminas-coding-standard": "~1.0.0", # "phpunit/phpunit": "^9.5.5", -# "psalm/plugin-phpunit": "^0.18.0", -#+ "vimeo/psalm": "^5.0.0" +# "psalm/plugin-phpunit": "^0.15.1", +#+ "vimeo/psalm": "^4.6.4" # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 BuildRequires: (php-autoloader(%{gh_owner}/laminas-code) >= 3.5.1 with php-autoloader(%{gh_owner}/laminas-code) < 5) @@ -61,10 +61,11 @@ BuildRequires: phpunit9 >= 9.5.5 BuildRequires: php-fedora-autoloader-devel # From composer, "require": { -# "php": "^7.4 || ~8.0.0 || ~8.1.0", +# "php": "~8.0.0 || ~8.1.0 || ~8.2.0", # "laminas/laminas-code": "^3.5.1 || ^4.0.0", -# "laminas/laminas-stdlib": "^3.3.1" -Requires: php(language) >= 7.4 +# "laminas/laminas-stdlib": "^3.3.1", +# "laminas/laminas-zendframework-bridge": "^1.2.0" +Requires: php(language) >= 8.0 %if ! %{bootstrap} # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 @@ -153,6 +154,7 @@ cat << 'EOF' | tee vendor/autoload.php <?php require_once '%{buildroot}%{php_home}/%{namespace}/%{library}/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4('%{namespace}Test\\%{library}\\', dirname(__DIR__) . '/test'); +require_once 'test/Reflection/TestAsset/functions.php'; require_once 'test/TestAsset/reflectionTestFunction.php'; EOF @@ -168,7 +170,7 @@ done : check compat autoloader php -r ' require "%{buildroot}%{php_home}/Zend/%{library}/autoload.php"; -exit (interface_exists("\\Zend\\%{library}\\%{library}Interface") ? 0 : 1); +exit (interface_exists("\\Zend\\%{library}\\%{library}") ? 0 : 1); ' exit $ret @@ -188,9 +190,6 @@ exit $ret %changelog -* Tue Dec 6 2022 Remi Collet <remi@remirepo.net> - 2.13.0-1 -- update to 2.13.0 - * Wed Nov 16 2022 Remi Collet <remi@remirepo.net> - 2.12.0-1 - update to 2.12.0 (no change) - raise dependency on PHP 8.0 |