summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-02-05 11:06:07 +0100
committerRemi Collet <remi@php.net>2024-02-05 11:06:07 +0100
commit4459c1bea66f945da4506a5d82fe72b62e2f193b (patch)
treebe9ad5c10701c2be3afaec927af5a9cd58fdbef1
parent408375c7e9508952fab7a8afa16ab1ea36123855 (diff)
update to 6.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-object-enumerator6 move to /usr/share/php/SebastianBergmann/ObjectEnumerator6
-rw-r--r--composer.json16
-rw-r--r--php-sebastian-object-enumerator6.spec62
2 files changed, 46 insertions, 32 deletions
diff --git a/composer.json b/composer.json
index 1d1a714..333d744 100644
--- a/composer.json
+++ b/composer.json
@@ -9,21 +9,25 @@
"email": "sebastian@phpunit.de"
}
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
+ "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy"
+ },
"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": {
- "phpunit/phpunit": "^10.0"
+ "phpunit/phpunit": "^11.0"
},
"autoload": {
"classmap": [
@@ -37,7 +41,7 @@
},
"extra": {
"branch-alias": {
- "dev-main": "5.0-dev"
+ "dev-main": "6.0-dev"
}
}
}
diff --git a/php-sebastian-object-enumerator6.spec b/php-sebastian-object-enumerator6.spec
index 3245237..020e2b3 100644
--- a/php-sebastian-object-enumerator6.spec
+++ b/php-sebastian-object-enumerator6.spec
@@ -1,30 +1,32 @@
-# remirepo/fedora spec file for php-sebastian-object-enumerator5
+# remirepo/fedora spec file for php-sebastian-object-enumerator6
#
-# Copyright (c) 2015-2023 Remi Collet
+# Copyright (c) 2015-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 202d0e344a580d7f7d04b3fafce6933e59dae906
+%global gh_commit f75f6c460da0bbd9668f43a3dde0ec0ba7faa678
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project object-enumerator
+%global gh_date 2024-02-02
# Packagist
%global pk_vendor sebastian
%global pk_project %{gh_project}
# Namespace
%global ns_vendor SebastianBergmann
%global ns_project ObjectEnumerator
-%global major 5
+%global major 6
%global php_home %{_datadir}/php
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 5.0.0
-Release: 4%{?dist}
+Version: 6.0.0
+Release: 1%{?dist}
Summary: Traverses array and object to enumerate all referenced objects, version %{major}
License: BSD-3-Clause
@@ -33,37 +35,37 @@ Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
BuildArch: noarch
-BuildRequires: php(language) >= 8.1
+BuildRequires: php(language) >= 8.2
BuildRequires: php-fedora-autoloader-devel
%if %{with tests}
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-BuildRequires: (php-composer(%{pk_vendor}/object-reflector) >= 3.0 with php-composer(%{pk_vendor}/object-reflector) < 4)
-BuildRequires: (php-composer(sebastian/recursion-context) >= 5.0 with php-composer(sebastian/recursion-context) < 6)
+BuildRequires: (php-composer(%{pk_vendor}/object-reflector) >= 4.0 with php-composer(%{pk_vendor}/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
BuildRequires: php-spl
# From composer.json"require-dev": {
-# "phpunit/phpunit": "^10.0"
-BuildRequires: phpunit10
+# "phpunit/phpunit": "^11.0"
+BuildRequires: phpunit11
%endif
# from composer.json
-# "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(%{pk_vendor}/object-reflector) >= 3.0 with php-composer(%{pk_vendor}/object-reflector) < 4)
-Requires: (php-composer(sebastian/recursion-context) >= 5.0 with php-composer(sebastian/recursion-context) < 6)
+Requires: (php-composer(%{pk_vendor}/object-reflector) >= 4.0 with php-composer(%{pk_vendor}/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 5.0.0:
#nothing
@@ -93,8 +95,8 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php
%{_bindir}/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
@@ -111,10 +113,10 @@ mkdir vendor
: 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 || ret=1
+ %{_bindir}/phpunit11 || ret=1
fi
done
exit $ret
@@ -132,6 +134,14 @@ exit $ret
%changelog
+* Mon Feb 5 2024 Remi Collet <remi@remirepo.net> - 6.0.0-1
+- update to 6.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-object-enumerator6
+- move to /usr/share/php/SebastianBergmann/ObjectEnumerator6
+
* Wed Aug 23 2023 Remi Collet <remi@remirepo.net> - 5.0.0-4
- Enable test suite