summaryrefslogtreecommitdiffstats
path: root/php-sebastian-lines-of-code5.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-sebastian-lines-of-code5.spec')
-rw-r--r--php-sebastian-lines-of-code5.spec32
1 files changed, 19 insertions, 13 deletions
diff --git a/php-sebastian-lines-of-code5.spec b/php-sebastian-lines-of-code5.spec
index 3006c37..4dc33e2 100644
--- a/php-sebastian-lines-of-code5.spec
+++ b/php-sebastian-lines-of-code5.spec
@@ -1,32 +1,32 @@
# remirepo/fedora spec file for php-sebastian-lines-of-code4
#
-# 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 97ffee3bcfb5805568d6af7f0f893678fc076d2f
+%global gh_commit 4f21bb7768e1c997722ccc7efb1d6b5c11bfd471
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project lines-of-code
-%global gh_date 2025-02-07
+%global gh_date 2026-02-06
# packagist
%global pk_vendor sebastian
%global pk_project %{gh_project}
-%global major 4
+%global major 5
# namespace
%global php_home %{_datadir}/php
%global ns_vendor SebastianBergmann
%global ns_project LinesOfCode
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 4.0.0
-Release: 2%{?dist}
+Version: 5.0.0
+Release: 1%{?dist}
Summary: Counting the lines of code in PHP source code, 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",
# "nikic/php-parser": "^5.0"
-Requires: php(language) >= 8.3
+Requires: php(language) >= 8.4
Requires: (php-composer(nikic/php-parser) >= 5.0 with php-composer(nikic/php-parser) < 6)
# from phpcompatinfo report for version 2.0.0
# Autoloader
@@ -93,7 +93,7 @@ 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
@@ -114,6 +114,12 @@ exit $ret
%changelog
+* Fri Feb 6 2026 Remi Collet <remi@remirepo.net> - 5.0.0-1
+- update to 5.0.0
+- raise dependency on PHP 8.4
+- rename to php-sebastian-lines-of-code5
+- move to /usr/share/php/SebastianBergmann/LinesOfCode5
+
* Mon Feb 10 2025 Remi Collet <remi@remirepo.net> - 4.0.0-2
- enable test suite