summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer.json14
-rw-r--r--php-sebastian-global-state7.spec58
2 files changed, 41 insertions, 31 deletions
diff --git a/composer.json b/composer.json
index 78f6eb7..95fb1f0 100644
--- a/composer.json
+++ b/composer.json
@@ -2,7 +2,7 @@
"name": "sebastian/global-state",
"description": "Snapshotting of global state",
"keywords": ["global state"],
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
+ "homepage": "https://www.github.com/sebastianbergmann/global-state",
"license": "BSD-3-Clause",
"authors": [
{
@@ -17,19 +17,19 @@
"prefer-stable": true,
"config": {
"platform": {
- "php": "8.1.0"
+ "php": "8.2.0"
},
"optimize-autoloader": true,
"sort-packages": true
},
"require": {
- "php": ">=8.1",
- "sebastian/object-reflector": "^3.0",
- "sebastian/recursion-context": "^5.0"
+ "php": ">=8.2",
+ "sebastian/object-reflector": "^4.0",
+ "sebastian/recursion-context": "^6.0"
},
"require-dev": {
"ext-dom": "*",
- "phpunit/phpunit": "^10.0"
+ "phpunit/phpunit": "^11.0"
},
"autoload": {
"classmap": [
@@ -46,7 +46,7 @@
},
"extra": {
"branch-alias": {
- "dev-main": "6.0-dev"
+ "dev-main": "7.0-dev"
}
}
}
diff --git a/php-sebastian-global-state7.spec b/php-sebastian-global-state7.spec
index fc2888e..41e7f78 100644
--- a/php-sebastian-global-state7.spec
+++ b/php-sebastian-global-state7.spec
@@ -1,30 +1,32 @@
-# spec file for php-sebastian-global-state6
+# spec file for php-sebastian-global-state7
#
-# Copyright (c) 2014-2023 Remi Collet
+# Copyright (c) 2014-2024 Remi Collet
# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
-%bcond_without tests
+# disabled until phpunit11 available
+%bcond_with tests
-%global gh_commit 7ea9ead78f6d380d2a667864c132c2f7b83055e4
+%global gh_commit 590e7cbc6565fa2e26c3df4e629a34bb0bc00c17
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project global-state
+%global gh_date 2024-02-02
# Packagist
%global pk_vendor sebastian
%global pk_project %{gh_project}
# Namespace
%global ns_vendor SebastianBergmann
%global ns_project GlobalState
-%global major 6
+%global major 7
%global php_home %{_datadir}/php
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 6.0.1
-Release: 3%{?dist}
+Version: 7.0.0
+Release: 1%{?dist}
Summary: Snapshotting of global state, version %{major}
License: BSD-3-Clause
@@ -33,7 +35,7 @@ Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
BuildArch: noarch
-BuildRequires: php(language) >= 8.1
+BuildRequires: php(language) >= 8.2
BuildRequires: php-reflection
BuildRequires: php-spl
# Autoloader
@@ -41,12 +43,12 @@ BuildRequires: php-fedora-autoloader-devel >= 1.0.0
%if %{with tests}
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-BuildRequires: (php-composer(sebastian/object-reflector) >= 3.0 with php-composer(sebastian/object-reflector) < 4)
-BuildRequires: (php-composer(sebastian/recursion-context) >= 5.0 with php-composer(sebastian/recursion-context) < 6)
+BuildRequires: (php-composer(sebastian/object-reflector) >= 4.0 with php-composer(sebastian/object-reflector) < 5)
+BuildRequires: (php-composer(sebastian/recursion-context) >= 6.0 with php-composer(sebastian/recursion-context) < 7)
# remirepo:4
%else
-BuildRequires: php-sebastian-object-reflector3
-BuildRequires: php-sebastian-recursion-context5
+BuildRequires: php-sebastian-object-reflector4
+BuildRequires: php-sebastian-recursion-context6
%endif
# from composer.json, "require-dev": {
# "ext-dom": "*",
@@ -56,18 +58,18 @@ BuildRequires: phpunit10
%endif
# from composer.json, "require": {
-# "php": ">=8.1",
-# "sebastian/object-reflector": "^3.0",
-# "sebastian/recursion-context": "^5.0"
-Requires: php(language) >= 7.3
+# "php": ">=8.2",
+# "sebastian/object-reflector": "^4.0",
+# "sebastian/recursion-context": "^6.0"
+Requires: php(language) >= 8.2
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-Requires: (php-composer(sebastian/object-reflector) >= 3.0 with php-composer(sebastian/object-reflector) < 4)
-Requires: (php-composer(sebastian/recursion-context) >= 5.0 with php-composer(sebastian/recursion-context) < 6)
+Requires: (php-composer(sebastian/object-reflector) >= 4.0 with php-composer(sebastian/object-reflector) < 5)
+Requires: (php-composer(sebastian/recursion-context) >= 6.0 with php-composer(sebastian/recursion-context) < 7)
# remirepo:4
%else
-Requires: php-sebastian-object-reflector3
-Requires: php-sebastian-recursion-context5
+Requires: php-sebastian-object-reflector4
+Requires: php-sebastian-recursion-context6
%endif
# from phpcompatinfo report for version 6.0.0
Requires: php-reflection
@@ -96,8 +98,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}/ObjectReflector3/autoload.php',
- '%{php_home}/%{ns_vendor}/RecursionContext5/autoload.php',
+ '%{php_home}/%{ns_vendor}/ObjectReflector4/autoload.php',
+ '%{php_home}/%{ns_vendor}/RecursionContext6/autoload.php',
]);
EOF
@@ -121,10 +123,10 @@ EOF
: Run upstream test suite
ret=0
-for cmd in php php81 php82 php83; do
+for cmd in php php82 php83; do
if which $cmd; then
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
- %{_bindir}/phpunit10 \
+ %{_bindir}/phpunit11 \
|| ret=1
fi
done
@@ -145,6 +147,14 @@ exit $ret
%changelog
+* Mon Feb 5 2024 Remi Collet <remi@remirepo.net> - 7.0.0-1
+- update to 7.0.0
+- raise dependency on PHP 8.2
+- raise dependency on sebastian/object-reflector 4
+- raise dependency on sebastian/recursion-context 6
+- rename to php-sebastian-global-state7
+- move to /usr/share/php/SebastianBergmann/GlobalState7
+
* Wed Aug 23 2023 Remi Collet <remi@remirepo.net> - 6.0.1-3
- Enable test suite