diff options
author | Remi Collet <remi@remirepo.net> | 2025-02-07 07:22:13 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-02-07 07:22:13 +0100 |
commit | 74c0f2a355f3a7df802104ff55c063fc6c736bd2 (patch) | |
tree | 6d215c1b202365b9f96e418d36f48de60250aad7 | |
parent | bfd906cf2ccef873fe6c714811059ccd0c4dca50 (diff) |
update to 4.0.0
raise dependency on PHP 8.3
rename to php-sebastian-lines-of-code4
move to /usr/share/php/SebastianBergmann/LinesOfCode4
-rw-r--r-- | composer.json | 8 | ||||
-rw-r--r-- | php-sebastian-lines-of-code4.spec | 38 |
2 files changed, 25 insertions, 21 deletions
diff --git a/composer.json b/composer.json index 46f1243..7c42805 100644 --- a/composer.json +++ b/composer.json @@ -17,15 +17,15 @@ }, "prefer-stable": true, "require": { - "php": ">=8.2", + "php": ">=8.3", "nikic/php-parser": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^12.0" }, "config": { "platform": { - "php": "8.2" + "php": "8.3" }, "optimize-autoloader": true, "sort-packages": true @@ -37,7 +37,7 @@ }, "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "4.0-dev" } } } diff --git a/php-sebastian-lines-of-code4.spec b/php-sebastian-lines-of-code4.spec index 8c89814..bb1e500 100644 --- a/php-sebastian-lines-of-code4.spec +++ b/php-sebastian-lines-of-code4.spec @@ -1,4 +1,4 @@ -# remirepo/fedora spec file for php-sebastian-lines-of-code3 +# remirepo/fedora spec file for php-sebastian-lines-of-code4 # # SPDX-FileCopyrightText: Copyright 2020-2025 Remi Collet # SPDX-License-Identifier: CECILL-2.1 @@ -7,27 +7,27 @@ # Please, preserve the changelog entries # -# disabled until phpunit11 available -%bcond_without tests +# disabled until phpunit12 available +%bcond_with tests # github -%global gh_commit d36ad0d782e5756913e42ad87cb2890f4ffe467a +%global gh_commit 97ffee3bcfb5805568d6af7f0f893678fc076d2f %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project lines-of-code -%global gh_date 2024-07-03 +%global gh_date 2025-02-07 # packagist %global pk_vendor sebastian %global pk_project %{gh_project} -%global major 3 +%global major 4 # namespace %global php_home %{_datadir}/php %global ns_vendor SebastianBergmann %global ns_project LinesOfCode Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 3.0.1 -Release: 2%{?dist} +Version: 4.0.0 +Release: 1%{?dist} Summary: Counting the lines of code in PHP source code, version %{major} License: BSD-3-Clause @@ -37,24 +37,22 @@ Source0: %{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh BuildArch: noarch -BuildRequires: php(language) >= 8.2 +BuildRequires: php(language) >= 8.3 BuildRequires: (php-composer(nikic/php-parser) >= 5.0 with php-composer(nikic/php-parser) < 6) -BuildRequires: php-spl # Autoloader BuildRequires: php-fedora-autoloader-devel >= 1.0.0 %if %{with tests} # from composer.json, "require-dev": { -# "phpunit/phpunit": "^11.0" -BuildRequires: phpunit11 +# "phpunit/phpunit": "^12.0" +BuildRequires: phpunit12 %endif # from composer.json, "require": { -# "php": ">=8.1", +# "php": ">=8.3", # "nikic/php-parser": "^5.0" -Requires: php(language) >= 8.2 +Requires: php(language) >= 8.3 Requires: (php-composer(nikic/php-parser) >= 5.0 with php-composer(nikic/php-parser) < 6) # from phpcompatinfo report for version 2.0.0 -Requires: php-spl # Autoloader Requires: php-composer(fedora/autoloader) @@ -96,10 +94,10 @@ touch vendor/autoload.php : Run upstream test suite ret=0 -for cmd in php php82 php83 php84; do +for cmd in php php83 php84; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ - %{_bindir}/phpunit11 || ret=1 + %{_bindir}/phpunit12 || ret=1 fi done exit $ret @@ -117,6 +115,12 @@ exit $ret %changelog +* Fri Feb 7 2025 Remi Collet <remi@remirepo.net> - 4.0.0-1 +- update to 4.0.0 +- raise dependency on PHP 8.3 +- rename to php-sebastian-lines-of-code4 +- move to /usr/share/php/SebastianBergmann/LinesOfCode4 + * Tue Feb 4 2025 Remi Collet <remi@remirepo.net> - 3.0.1-2 - enable test suite |