From d812f4428feee3c2a43199ccfd55043bebdf61de Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 3 Feb 2023 12:59:03 +0100 Subject: 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 --- composer.json | 17 ++++++++----- php-sebastian-exporter5.spec | 60 ++++++++++++++++++++++++++------------------ 2 files changed, 46 insertions(+), 31 deletions(-) diff --git a/composer.json b/composer.json index baa9584..4d1e169 100644 --- a/composer.json +++ b/composer.json @@ -28,28 +28,33 @@ ], "config": { "platform": { - "php": "7.3.0" + "php": "8.1.0" }, "optimize-autoloader": true, "sort-packages": true }, "prefer-stable": true, "require": { - "php": ">=7.3", - "sebastian/recursion-context": "^4.0" + "php": ">=8.1", + "ext-mbstring": "*", + "sebastian/recursion-context": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^9.3", - "ext-mbstring": "*" + "phpunit/phpunit": "^10.0" }, "autoload": { "classmap": [ "src/" ] }, + "autoload-dev": { + "classmap": [ + "tests/_fixture" + ] + }, "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } } } 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 < - 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 - 4.0.5-1 - update to 4.0.5 -- cgit