From 31514349834ebf722b9c851f0fb54093f21517bc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 7 Feb 2025 07:55:53 +0100 Subject: update to 7.0.0 raise dependency on PHP 8.3 raise dependency on sebastian/recursion-context 7 rename to php-sebastian-exporter7 move to /usr/share/php/SebastianBergmann/Exporter7 --- composer.json | 10 ++++----- php-sebastian-exporter7.spec | 49 +++++++++++++++++++++++--------------------- 2 files changed, 31 insertions(+), 28 deletions(-) diff --git a/composer.json b/composer.json index 5d5c72a..1430aa1 100644 --- a/composer.json +++ b/composer.json @@ -32,19 +32,19 @@ }, "config": { "platform": { - "php": "8.2.0" + "php": "8.3.0" }, "optimize-autoloader": true, "sort-packages": true }, "prefer-stable": true, "require": { - "php": ">=8.2", + "php": ">=8.3", "ext-mbstring": "*", - "sebastian/recursion-context": "^6.0" + "sebastian/recursion-context": "^7.0" }, "require-dev": { - "phpunit/phpunit": "^11.3" + "phpunit/phpunit": "^12.0" }, "autoload": { "classmap": [ @@ -58,7 +58,7 @@ }, "extra": { "branch-alias": { - "dev-main": "6.1-dev" + "dev-main": "7.0-dev" } } } diff --git a/php-sebastian-exporter7.spec b/php-sebastian-exporter7.spec index ca59323..163b9f1 100644 --- a/php-sebastian-exporter7.spec +++ b/php-sebastian-exporter7.spec @@ -1,4 +1,4 @@ -# remirepo/fedora spec file for php-sebastian-exporter6 +# remirepo/fedora spec file for php-sebastian-exporter7 # # SPDX-FileCopyrightText: Copyright 2013-2025 Remi Collet # SPDX-License-Identifier: CECILL-2.1 @@ -7,28 +7,28 @@ # Please, preserve the changelog entries # -# disabled until phpunit11 available -%bcond_without tests +# disabled until phpunit12 available +%bcond_with tests -%global gh_commit 3473f61172093b2da7de1fb5782e1f24cc036dc3 +%global gh_commit 76432aafc58d50691a00d86d0632f1217a47b688 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project exporter -%global gh_date 2024-12-05 +%global gh_date 2025-02-07 # Packagist %global pk_vendor sebastian %global pk_project %{gh_project} # Namespace %global ns_vendor SebastianBergmann %global ns_project Exporter -%global major 6 +%global major 7 %global php_home %{_datadir}/php %global pear_name Exporter %global pear_channel pear.phpunit.de Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 6.3.0 -Release: 2%{?dist} +Version: 7.0.0 +Release: 1%{?dist} Summary: Export PHP variables for visualization, version %{major} License: BSD-3-Clause @@ -38,28 +38,24 @@ Source0: %{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh BuildArch: noarch -BuildRequires: php(language) >= 8.2 +BuildRequires: php(language) >= 8.3 BuildRequires: php-mbstring -BuildRequires: php-pcre -BuildRequires: php-spl BuildRequires: php-fedora-autoloader-devel %if %{with tests} # from composer.json, "require-dev": { -# "phpunit/phpunit": "^11.3", -BuildRequires: phpunit11 >= 11.3 -BuildRequires: (php-composer(%{pk_vendor}/recursion-context) >= 6.0 with php-composer(%{pk_vendor}/recursion-context) < 7) +# "phpunit/phpunit": "^12.0", +BuildRequires: phpunit12 +BuildRequires: (php-composer(%{pk_vendor}/recursion-context) >= 7.0 with php-composer(%{pk_vendor}/recursion-context) < 8) %endif # from composer.json -# "php": ">=8.2", +# "php": ">=8.3", # "ext-mbstring": "*", -# "sebastian/recursion-context": "^6.0" -Requires: php(language) >= 8.2 +# "sebastian/recursion-context": "^7.0" +Requires: php(language) >= 8.3 Requires: php-mbstring -Requires: (php-composer(%{pk_vendor}/recursion-context) >= 6.0 with php-composer(%{pk_vendor}/recursion-context) < 7) +Requires: (php-composer(%{pk_vendor}/recursion-context) >= 7.0 with php-composer(%{pk_vendor}/recursion-context) < 8) # from phpcompatinfo report for version 5.0.0 -Requires: php-pcre -Requires: php-spl # Autoloader Requires: php-composer(fedora/autoloader) @@ -84,7 +80,7 @@ phpab --template fedora --output src/autoload.php src cat < - 7.0.0-1 +- update to 7.0.0 +- raise dependency on PHP 8.3 +- raise dependency on sebastian/recursion-context 7 +- rename to php-sebastian-exporter7 +- move to /usr/share/php/SebastianBergmann/Exporter7 + * Tue Feb 4 2025 Remi Collet - 6.3.0-2 - enable test suite -- cgit