diff options
author | Remi Collet <remi@remirepo.net> | 2023-02-03 14:48:00 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-02-03 14:48:00 +0100 |
commit | 4daadf72254393781753d51bc30152747d704991 (patch) | |
tree | 37a21b293d939f1d3eb95ecd7fab8579d767f6f4 | |
parent | c9f72e13facaa62627a02eaf32a4ad7e3dc17a9d (diff) |
update to 2.0.0
raise dependency on PHP 8.1
rename to php-sebastian-cli-parser2
move to /usr/share/php/SebastianBergmann/CliParser2
-rw-r--r-- | composer.json | 8 | ||||
-rw-r--r-- | php-sebastian-cli-parser2.spec | 38 |
2 files changed, 26 insertions, 20 deletions
diff --git a/composer.json b/composer.json index 34c376f..f33a196 100644 --- a/composer.json +++ b/composer.json @@ -16,14 +16,14 @@ }, "prefer-stable": true, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "config": { "platform": { - "php": "7.3.0" + "php": "8.1.0" }, "optimize-autoloader": true, "sort-packages": true @@ -35,7 +35,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "2.0-dev" } } } diff --git a/php-sebastian-cli-parser2.spec b/php-sebastian-cli-parser2.spec index dbd34c3..a6658c6 100644 --- a/php-sebastian-cli-parser2.spec +++ b/php-sebastian-cli-parser2.spec @@ -1,30 +1,31 @@ -# remirepo/fedora spec file for php-sebastian-cli-parser +# remirepo/fedora spec file for php-sebastian-cli-parser2 # -# Copyright (c) 2020 Remi Collet -# License: CC-BY-SA +# Copyright (c) 2020-2023 Remi Collet +# License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%bcond_without tests +# disabled until phpunit10 available +%bcond_with tests # github -%global gh_commit 442e7c7e687e42adc03470c7b668bc4b2402c0b2 +%global gh_commit efdc130dbbbb8ef0b545a994fd811725c5282cae %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project cli-parser # packagist %global pk_vendor sebastian %global pk_project %{gh_project} -%global major %nil +%global major 2 # namespace %global php_home %{_datadir}/php %global ns_vendor SebastianBergmann %global ns_project CliParser Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 1.0.1 +Version: 2.0.0 Release: 1%{?dist} Summary: Library for parsing CLI options @@ -35,22 +36,21 @@ Source0: %{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh BuildArch: noarch -BuildRequires: php(language) >= 7.3 +BuildRequires: php(language) >= 8.1 BuildRequires: php-pcre BuildRequires: php-spl # Autoloader BuildRequires: php-fedora-autoloader-devel >= 1.0.0 %if %{with tests} # from composer.json, "require-dev": { -# "phpunit/phpunit": "^9.3" -# temporary ignore min version, test suite passes with 9.2 -BuildRequires: phpunit9 >= 9.2 +# "phpunit/phpunit": "^10.0" +BuildRequires: phpunit10 %endif # from composer.json, "require": { -# "php": ">=7.3", -Requires: php(language) >= 7.3 -# from phpcompatinfo report for version 1.0.0 +# "php": ">=8.1", +Requires: php(language) >= 8.1 +# from phpcompatinfo report for version 2.0.0 Requires: php-pcre Requires: php-spl # Autoloader @@ -86,10 +86,10 @@ touch vendor/autoload.php : Run upstream test suite ret=0 -for cmd in php php73 php74 php80; do +for cmd in php php81 php82; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ - %{_bindir}/phpunit9 --verbose || ret=1 + %{_bindir}/phpunit10 --verbose || ret=1 fi done exit $ret @@ -109,6 +109,12 @@ exit $ret %changelog +* Fri Feb 3 2023 Remi Collet <remi@remirepo.net> - 2.0.0-1 +- update to 2.0.0 +- raise dependency on PHP 8.1 +- rename to php-sebastian-cli-parser2 +- move to /usr/share/php/SebastianBergmann/CliParser2 + * Mon Sep 28 2020 Remi Collet <remi@remirepo.net> - 1.0.1-1 - update to 1.0.1 |