diff options
Diffstat (limited to 'php-sebastian-exporter5.spec')
-rw-r--r-- | php-sebastian-exporter5.spec | 60 |
1 files changed, 35 insertions, 25 deletions
diff --git a/php-sebastian-exporter5.spec b/php-sebastian-exporter5.spec index f72f773..cc3ab0c 100644 --- a/php-sebastian-exporter5.spec +++ b/php-sebastian-exporter5.spec @@ -1,15 +1,16 @@ -# remirepo/fedora spec file for php-sebastian-exporter4 +# remirepo/fedora spec file for php-sebastian-exporter5 # -# Copyright (c) 2013-2022 Remi Collet -# License: CC-BY-SA +# Copyright (c) 2013-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 -%global gh_commit ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d +%global gh_commit f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project exporter @@ -19,13 +20,13 @@ # Namespace %global ns_vendor SebastianBergmann %global ns_project Exporter -%global major 4 +%global major 5 %global php_home %{_datadir}/php %global pear_name Exporter %global pear_channel pear.phpunit.de Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 4.0.5 +Version: 5.0.0 Release: 1%{?dist} Summary: Export PHP variables for visualization, version %{major} @@ -35,36 +36,38 @@ Source0: %{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh BuildArch: noarch -BuildRequires: php(language) >= 7.3 -BuildRequires: php-fedora-autoloader-devel >= 1.0.0 +BuildRequires: php(language) >= 8.1 +BuildRequires: php-mbstring +BuildRequires: php-pcre +BuildRequires: php-spl +BuildRequires: php-fedora-autoloader-devel %if %{with tests} # from composer.json, "require-dev": { -# "phpunit/phpunit": "^9.3", -# "ext-mbstring": "*" -BuildRequires: phpunit9 >= 9.3 -BuildRequires: php-mbstring +# "phpunit/phpunit": "^10.0", +BuildRequires: phpunit10 # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 -BuildRequires: (php-composer(%{pk_vendor}/recursion-context) >= 4.0 with php-composer(%{pk_vendor}/recursion-context) < 5) +BuildRequires: (php-composer(%{pk_vendor}/recursion-context) >= 5.0 with php-composer(%{pk_vendor}/recursion-context) < 6) # remirepo:3 %else -BuildRequires: php-sebastian-recursion-context4 +BuildRequires: php-sebastian-recursion-context5 %endif %endif # from composer.json -# "php": ">=7.3", -# "sebastian/recursion-context": "^4.0" -Requires: php(language) >= 7.3 +# "php": ">=8.1", +# "ext-mbstring": "*", +# "sebastian/recursion-context": "^5.0" +Requires: php(language) >= 8.1 +Requires: php-mbstring # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 -Requires: (php-composer(%{pk_vendor}/recursion-context) >= 4.0 with php-composer(%{pk_vendor}/recursion-context) < 5) +Requires: (php-composer(%{pk_vendor}/recursion-context) >= 5.0 with php-composer(%{pk_vendor}/recursion-context) < 6) # remirepo:3 %else -Requires: php-sebastian-recursion-context4 +Requires: php-sebastian-recursion-context5 %endif -# from phpcompatinfo report for version 4.0.0 -Requires: php-mbstring +# from phpcompatinfo report for version 5.0.0 Requires: php-pcre Requires: php-spl # Autoloader @@ -87,7 +90,7 @@ phpab --template fedora --output src/autoload.php src cat <<EOF | tee -a src/autoload.php // Dependency' autoloader -require_once '%{php_home}/%{ns_vendor}/RecursionContext4/autoload.php'; +require_once '%{php_home}/%{ns_vendor}/RecursionContext5/autoload.php'; EOF @@ -103,10 +106,10 @@ touch vendor/autoload.php : Run upstream test suite ret=0 -for cmd in php php74 php80 php81 php82; 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 @@ -123,6 +126,13 @@ exit $ret %changelog +* Fri Feb 3 2023 Remi Collet <remi@remirepo.net> - 5.0.0-1 +- update to 5.0.0 +- raise dependency on PHP 8.1 +- raise dependency on sebastian/recursion-context 5 +- rename to php-sebastian-exporter5 +- move to /usr/share/php/SebastianBergmann/Exporter5 + * Wed Sep 14 2022 Remi Collet <remi@remirepo.net> - 4.0.5-1 - update to 4.0.5 |