summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-02-06 07:11:41 +0100
committerRemi Collet <remi@php.net>2026-02-06 07:11:41 +0100
commit188b5520d49f943f2f7b2f82fbfc7e7c5ed23d4f (patch)
tree870d905b651f1432a4eb422a7560cd9d3a6bb347
parent72dff926f27681d7a0ca4cf4959f3fb7f68eaa11 (diff)
update to 6.0.0HEADmaster
raise dependency on PHP 8.4 rename to php-sebastian-complexity6 move to /usr/share/php/SebastianBergmann/Complexity6
-rw-r--r--composer.json8
-rw-r--r--php-sebastian-complexity6.spec34
2 files changed, 24 insertions, 18 deletions
diff --git a/composer.json b/composer.json
index 994a5a3..dfda08f 100644
--- a/composer.json
+++ b/composer.json
@@ -17,15 +17,15 @@
},
"prefer-stable": true,
"require": {
- "php": ">=8.3",
+ "php": ">=8.4",
"nikic/php-parser": "^5.0"
},
"require-dev": {
- "phpunit/phpunit": "^12.0"
+ "phpunit/phpunit": "^13.0"
},
"config": {
"platform": {
- "php": "8.3.0"
+ "php": "8.4.1"
},
"optimize-autoloader": true,
"sort-packages": true
@@ -37,7 +37,7 @@
},
"extra": {
"branch-alias": {
- "dev-main": "5.0-dev"
+ "dev-main": "6.0-dev"
}
}
}
diff --git a/php-sebastian-complexity6.spec b/php-sebastian-complexity6.spec
index d850131..ed6184d 100644
--- a/php-sebastian-complexity6.spec
+++ b/php-sebastian-complexity6.spec
@@ -1,32 +1,32 @@
# remirepo/fedora spec file for php-sebastian-complexity5
#
-# SPDX-FileCopyrightText: Copyright 2020-2025 Remi Collet
+# SPDX-FileCopyrightText: Copyright 2020-2026 Remi Collet
# SPDX-License-Identifier: CECILL-2.1
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
-%bcond_without tests
+%bcond_with tests
# github
-%global gh_commit bad4316aba5303d0221f43f8cee37eb58d384bbb
+%global gh_commit c5651c795c98093480df79350cb050813fc7a2f3
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project complexity
-%global gh_date 2025-02-07
+%global gh_date 2026-02-06
# packagist
%global pk_vendor sebastian
%global pk_project %{gh_project}
-%global major 5
+%global major 6
# namespace
%global php_home %{_datadir}/php
%global ns_vendor SebastianBergmann
%global ns_project Complexity
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 5.0.0
-Release: 2%{?dist}
+Version: 6.0.0
+Release: 1%{?dist}
Summary: Calculating the complexity of PHP code units, version %{major}
License: BSD-3-Clause
@@ -36,20 +36,20 @@ Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
BuildArch: noarch
-BuildRequires: php(language) >= 8.3
+BuildRequires: php(language) >= 8.4.1
BuildRequires: (php-composer(nikic/php-parser) >= 5.0 with php-composer(nikic/php-parser) < 6)
# Autoloader
BuildRequires: php-fedora-autoloader-devel >= 1.0.0
%if %{with tests}
# from composer.json, "require-dev": {
-# "phpunit/phpunit": "^12.0"
-BuildRequires: phpunit12
+# "phpunit/phpunit": "^13.0"
+BuildRequires: phpunit13
%endif
# from composer.json, "require": {
-# "php": ">=8.3",
+# "php": ">=8.4.1",
# "nikic/php-parser": "^5.0"
-Requires: php(language) >= 8.3
+Requires: php(language) >= 8.4.1
Requires: (php-composer(nikic/php-parser) >= 5.0 with php-composer(nikic/php-parser) < 6)
# from phpcompatinfo report for version 3.0.0
# none
@@ -94,10 +94,10 @@ touch vendor/autoload.php
: Run upstream test suite
ret=0
-for cmd in php php83 php84; do
+for cmd in php php84 php85; do
if which $cmd; then
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
- %{_bindir}/phpunit12 || ret=1
+ %{_bindir}/phpunit13 || ret=1
fi
done
exit $ret
@@ -115,6 +115,12 @@ exit $ret
%changelog
+* Fri Feb 6 2026 Remi Collet <remi@remirepo.net> - 6.0.0-1
+- update to 6.0.0
+- raise dependency on PHP 8.4
+- rename to php-sebastian-complexity6
+- move to /usr/share/php/SebastianBergmann/Complexity6
+
* Mon Feb 10 2025 Remi Collet <remi@remirepo.net> - 5.0.0-2
- enable test suite