summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-02-03 12:43:25 +0100
committerRemi Collet <remi@php.net>2023-02-03 12:43:25 +0100
commitf8324ff5e8c821c8a333405a65b0c3e928a90f36 (patch)
tree6b12ad8795b57a18e5909060c04f9f2678b49340
parente4fc9915152bc2468e8db46299f35bd34e9ddb0a (diff)
update to 5.0.0
raise dependency on PHP 8.1 raise dependency on sebastian/object-reflector 3 raise dependency on sebastian/recursion-context 5 rename to php-sebastian-object-enumerator5 move to /usr/share/php/SebastianBergmann/ObjectEnumerator5
-rw-r--r--composer.json12
-rw-r--r--php-sebastian-object-enumerator5.spec61
2 files changed, 41 insertions, 32 deletions
diff --git a/composer.json b/composer.json
index d68a213..1d1a714 100644
--- a/composer.json
+++ b/composer.json
@@ -12,18 +12,18 @@
"prefer-stable": true,
"config": {
"platform": {
- "php": "7.3.0"
+ "php": "8.1.0"
},
"optimize-autoloader": true,
"sort-packages": true
},
"require": {
- "php": ">=7.3",
- "sebastian/object-reflector": "^2.0",
- "sebastian/recursion-context": "^4.0"
+ "php": ">=8.1",
+ "sebastian/object-reflector": "^3.0",
+ "sebastian/recursion-context": "^5.0"
},
"require-dev": {
- "phpunit/phpunit": "^9.3"
+ "phpunit/phpunit": "^10.0"
},
"autoload": {
"classmap": [
@@ -37,7 +37,7 @@
},
"extra": {
"branch-alias": {
- "dev-master": "4.0-dev"
+ "dev-main": "5.0-dev"
}
}
}
diff --git a/php-sebastian-object-enumerator5.spec b/php-sebastian-object-enumerator5.spec
index 4cf3fd5..fa45b36 100644
--- a/php-sebastian-object-enumerator5.spec
+++ b/php-sebastian-object-enumerator5.spec
@@ -1,15 +1,16 @@
-# remirepo/fedora spec file for php-sebastian-object-enumerator4
+# remirepo/fedora spec file for php-sebastian-object-enumerator5
#
-# Copyright (c) 2015-2020 Remi Collet
-# License: CC-BY-SA
+# Copyright (c) 2015-2023 Remi Collet
+# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
-%bcond_without tests
+# disable until phpunit10 available
+%bcond_with tests
-%global gh_commit 5c9eeac41b290a3712d88851518825ad78f45c71
+%global gh_commit 202d0e344a580d7f7d04b3fafce6933e59dae906
#global gh_date 20150728
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
@@ -20,11 +21,11 @@
# Namespace
%global ns_vendor SebastianBergmann
%global ns_project ObjectEnumerator
-%global major 4
+%global major 5
%global php_home %{_datadir}/php
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 4.0.4
+Version: 5.0.0
%global specrel 1
Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}
Summary: Traverses array and object to enumerate all referenced objects, version %{major}
@@ -35,38 +36,38 @@ Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
BuildArch: noarch
-BuildRequires: php(language) >= 7.3
+BuildRequires: php(language) >= 8.1
BuildRequires: php-fedora-autoloader-devel
%if %{with tests}
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-BuildRequires: (php-composer(%{pk_vendor}/object-reflector) >= 2.0 with php-composer(%{pk_vendor}/object-reflector) < 3)
-BuildRequires: (php-composer(sebastian/recursion-context) >= 4.0 with php-composer(sebastian/recursion-context) < 5)
+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)
# remirepo:4
%else
-BuildRequires: php-sebastian-object-reflector2
-BuildRequires: php-sebastian-recursion-context4
+BuildRequires: php-sebastian-object-reflector3
+BuildRequires: php-sebastian-recursion-context5
%endif
# From composer.json"require-dev": {
-# "phpunit/phpunit": "^9.3"
-BuildRequires: phpunit9 >= 9.3
+# "phpunit/phpunit": "^10.0"
+BuildRequires: phpunit10
%endif
# from composer.json
-# "php": ">=7.3",
-# "sebastian/object-reflector": "^2.0",
-# "sebastian/recursion-context": "^4.0"
+# "php": ">=8.1",
+# "sebastian/object-reflector": "^3.0",
+# "sebastian/recursion-context": "^5.0"
Requires: php(language) >= 7.3
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-Requires: (php-composer(%{pk_vendor}/object-reflector) >= 2.0 with php-composer(%{pk_vendor}/object-reflector) < 3)
-Requires: (php-composer(sebastian/recursion-context) >= 4.0 with php-composer(sebastian/recursion-context) < 5)
+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)
# remirepo:4
%else
-Requires: php-sebastian-object-reflector2
-Requires: php-sebastian-recursion-context4
+Requires: php-sebastian-object-reflector3
+Requires: php-sebastian-recursion-context5
%endif
-# from phpcompatinfo report for version 4.0.0:
+# from phpcompatinfo report for version 5.0.0:
Requires: php-spl
# Autoloader
Requires: php-composer(fedora/autoloader)
@@ -92,8 +93,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}/ObjectReflector2/autoload.php',
- '%{php_home}/%{ns_vendor}/RecursionContext4/autoload.php',
+ '%{php_home}/%{ns_vendor}/ObjectReflector3/autoload.php',
+ '%{php_home}/%{ns_vendor}/RecursionContext5/autoload.php',
]);
EOF
@@ -110,10 +111,10 @@ mkdir vendor
: Run upstream test suite
ret=0
-for cmd in php php73 php74 php80; do
+for cmd in php php81 php82; do
if which $cmd; then
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
- %{_bindir}/phpunit9 --verbose || ret=1
+ %{_bindir}/phpunit10 --verbose || ret=1
fi
done
exit $ret
@@ -131,6 +132,14 @@ exit $ret
%changelog
+* Fri Feb 3 2023 Remi Collet <remi@remirepo.net> - 5.0.0-1
+- update to 5.0.0
+- raise dependency on PHP 8.1
+- raise dependency on sebastian/object-reflector 3
+- raise dependency on sebastian/recursion-context 5
+- rename to php-sebastian-object-enumerator5
+- move to /usr/share/php/SebastianBergmann/ObjectEnumerator5
+
* Mon Oct 26 2020 Remi Collet <remi@remirepo.net> - 4.0.4-1
- update to 4.0.4