summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-02-05 11:00:02 +0100
committerRemi Collet <remi@php.net>2024-02-05 11:00:02 +0100
commit5235c3e745ae72d74084903af7a5766a6214ab1f (patch)
treea1a5331c1a7bbf7adaf26e89dce1f7cf7a9fff6e
parentf0312c8f57f96e33643754357bf9006028edfffc (diff)
update to 4.0.0
raise dependency on PHP 8.2 rename to php-sebastian-object-reflector4 move to /usr/share/php/SebastianBergmann/ObjectReflector4
-rw-r--r--composer.json12
-rw-r--r--php-sebastian-object-reflector4.spec36
2 files changed, 30 insertions, 18 deletions
diff --git a/composer.json b/composer.json
index c9dcad0..2f3a06f 100644
--- a/composer.json
+++ b/composer.json
@@ -9,19 +9,23 @@
"email": "sebastian@phpunit.de"
}
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
+ "security": "https://github.com/sebastianbergmann/object-reflector/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"
+ "php": ">=8.2"
},
"require-dev": {
- "phpunit/phpunit": "^10.0"
+ "phpunit/phpunit": "^11.0"
},
"autoload": {
"classmap": [
@@ -35,7 +39,7 @@
},
"extra": {
"branch-alias": {
- "dev-main": "3.0-dev"
+ "dev-main": "4.0-dev"
}
}
}
diff --git a/php-sebastian-object-reflector4.spec b/php-sebastian-object-reflector4.spec
index 4a9f5d1..af8571d 100644
--- a/php-sebastian-object-reflector4.spec
+++ b/php-sebastian-object-reflector4.spec
@@ -1,30 +1,32 @@
-# remirepo/fedora spec file for php-sebastian-object-reflector3
+# remirepo/fedora spec file for php-sebastian-object-reflector4
#
-# Copyright (c) 2017-2023 Remi Collet
+# Copyright (c) 2017-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 24ed13d98130f0e7122df55d06c5c4942a577957
+%global gh_commit bb2a6255d30853425fd38f032eb64ced9f7f132d
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project object-reflector
+%global gh_date 2024-02-02
# Packagist
%global pk_vendor sebastian
%global pk_project %{gh_project}
# Namespace
%global ns_vendor SebastianBergmann
%global ns_project ObjectReflector
-%global major 3
+%global major 4
%global php_home %{_datadir}/php
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 3.0.0
-Release: 3%{?dist}
+Version: 4.0.0
+Release: 1%{?dist}
Summary: Allows reflection of object attributes, version %{major}
License: BSD-3-Clause
@@ -33,17 +35,17 @@ 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}
# from composer.json, "require-dev": {
-# "phpunit/phpunit": "^10.0"
-BuildRequires: phpunit10
+# "phpunit/phpunit": "^11.0"
+BuildRequires: phpunit11
%endif
# from composer.json
-# "php": ">=8.1"
-Requires: php(language) >= 8.1
+# "php": ">=8.2"
+Requires: php(language) >= 8.2
# from phpcompatinfo report for version 2.0.0
#nothing
# Autoloader
@@ -85,10 +87,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 || ret=1
+ %{_bindir}/phpunit11 || ret=1
fi
done
exit $ret
@@ -107,6 +109,12 @@ exit $ret
%changelog
+* Mon Feb 5 2024 Remi Collet <remi@remirepo.net> - 4.0.0-1
+- update to 4.0.0
+- raise dependency on PHP 8.2
+- rename to php-sebastian-object-reflector4
+- move to /usr/share/php/SebastianBergmann/ObjectReflector4
+
* Wed Aug 23 2023 Remi Collet <remi@remirepo.net> - 3.0.0-3
- Enable test suite