summaryrefslogtreecommitdiffstats
path: root/php-sebastian-cli-parser2.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-sebastian-cli-parser2.spec')
-rw-r--r--php-sebastian-cli-parser2.spec38
1 files changed, 22 insertions, 16 deletions
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