summaryrefslogtreecommitdiffstats
path: root/php-sebastian-global-state9.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-sebastian-global-state9.spec')
-rw-r--r--php-sebastian-global-state9.spec48
1 files changed, 28 insertions, 20 deletions
diff --git a/php-sebastian-global-state9.spec b/php-sebastian-global-state9.spec
index d05fd0a..4fc41d5 100644
--- a/php-sebastian-global-state9.spec
+++ b/php-sebastian-global-state9.spec
@@ -1,30 +1,30 @@
# spec file for php-sebastian-global-state8
#
-# SPDX-FileCopyrightText: Copyright 2014-2025 Remi Collet
+# SPDX-FileCopyrightText: Copyright 2014-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
-%global gh_commit ef1377171613d09edd25b7816f05be8313f9115d
+%global gh_commit e52e3dc22441e6218c710afe72c3042f8fc41ea7
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project global-state
-%global gh_date 2025-08-29
+%global gh_date 2026-02-06
# Packagist
%global pk_vendor sebastian
%global pk_project %{gh_project}
# Namespace
%global ns_vendor SebastianBergmann
%global ns_project GlobalState
-%global major 8
+%global major 9
%global php_home %{_datadir}/php
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 8.0.2
+Version: 9.0.0
Release: 1%{?dist}
Summary: Snapshotting of global state, version %{major}
@@ -35,26 +35,26 @@ Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
BuildArch: noarch
-BuildRequires: php(language) >= 8.3
+BuildRequires: php(language) >= 8.4.1
# Autoloader
BuildRequires: php-fedora-autoloader-devel >= 1.0.0
%if %{with tests}
-BuildRequires: (php-composer(sebastian/object-reflector) >= 5.0 with php-composer(sebastian/object-reflector) < 6)
-BuildRequires: (php-composer(sebastian/recursion-context) >= 7.0 with php-composer(sebastian/recursion-context) < 8)
+BuildRequires: (php-composer(sebastian/object-reflector) >= 6.0 with php-composer(sebastian/object-reflector) < 7)
+BuildRequires: (php-composer(sebastian/recursion-context) >= 8.0 with php-composer(sebastian/recursion-context) < 9)
# from composer.json, "require-dev": {
# "ext-dom": "*",
-# "phpunit/phpunit": "^12.0"
+# "phpunit/phpunit": "^13.0"
BuildRequires: php-dom
-BuildRequires: phpunit12
+BuildRequires: phpunit13
%endif
# from composer.json, "require": {
-# "php": ">=8.3",
-# "sebastian/object-reflector": "^5.0",
-# "sebastian/recursion-context": "^7.0"
-Requires: php(language) >= 8.3
-Requires: (php-composer(sebastian/object-reflector) >= 5.0 with php-composer(sebastian/object-reflector) < 6)
-Requires: (php-composer(sebastian/recursion-context) >= 7.0 with php-composer(sebastian/recursion-context) < 8)
+# "php": ">=8.4.1",
+# "sebastian/object-reflector": "^6.0",
+# "sebastian/recursion-context": "^8.0"
+Requires: php(language) >= 8.4.1
+Requires: (php-composer(sebastian/object-reflector) >= 6.0 with php-composer(sebastian/object-reflector) < 7)
+Requires: (php-composer(sebastian/recursion-context) >= 8.0 with php-composer(sebastian/recursion-context) < 9)
# from phpcompatinfo report for version 6.0.0
# Autoloader
Requires: php-composer(fedora/autoloader)
@@ -80,8 +80,8 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php
phpab --template fedora --output src/autoload.php src
cat << 'EOF' | tee -a src/autoload.php
\Fedora\Autoloader\Dependencies::required([
- '%{php_home}/%{ns_vendor}/ObjectReflector5/autoload.php',
- '%{php_home}/%{ns_vendor}/RecursionContext7/autoload.php',
+ '%{php_home}/%{ns_vendor}/ObjectReflector6/autoload.php',
+ '%{php_home}/%{ns_vendor}/RecursionContext8/autoload.php',
]);
EOF
@@ -108,7 +108,7 @@ sed -e '/processIsolation/d' -i phpunit.xml
: Run upstream test suite
ret=0
-for cmd in php php83 php84 php85; 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 --bootstrap vendor/autoload.php \
@@ -130,6 +130,14 @@ exit $ret
%changelog
+* Fri Feb 6 2026 Remi Collet <remi@remirepo.net> - 9.0.0-1
+- update to 9.0.0
+- raise dependency on PHP 8.4
+- raise dependency on sebastian/object-reflector 6
+- raise dependency on sebastian/recursion-context 8
+- rename to php-sebastian-global-state9
+- move to /usr/share/php/SebastianBergmann/GlobalState9
+
* Fri Aug 29 2025 Remi Collet <remi@remirepo.net> - 8.0.2-1
- update to 8.0.2