summaryrefslogtreecommitdiffstats
path: root/php-sebastian-object-reflector3.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-sebastian-object-reflector3.spec')
-rw-r--r--php-sebastian-object-reflector3.spec33
1 files changed, 20 insertions, 13 deletions
diff --git a/php-sebastian-object-reflector3.spec b/php-sebastian-object-reflector3.spec
index b065b79..7576b7f 100644
--- a/php-sebastian-object-reflector3.spec
+++ b/php-sebastian-object-reflector3.spec
@@ -1,15 +1,16 @@
-# remirepo/fedora spec file for php-sebastian-object-reflector2
+# remirepo/fedora spec file for php-sebastian-object-reflector3
#
-# Copyright (c) 2017-2020 Remi Collet
+# Copyright (c) 2017-2023 Remi Collet
# License: CC-BY-SA
# 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 b4f479ebdbf63ac605d183ece17d8d7fe49c15c7
+%global gh_commit 24ed13d98130f0e7122df55d06c5c4942a577957
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project object-reflector
@@ -19,11 +20,11 @@
# Namespace
%global ns_vendor SebastianBergmann
%global ns_project ObjectReflector
-%global major 2
+%global major 3
%global php_home %{_datadir}/php
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 2.0.4
+Version: 3.0.0
Release: 1%{?dist}
Summary: Allows reflection of object attributes, version %{major}
@@ -33,17 +34,17 @@ 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}
# 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"
-Requires: php(language) >= 7.3
+# "php": ">=8.1"
+Requires: php(language) >= 8.1
# from phpcompatinfo report for version 2.0.0
Requires: php-spl
# Autoloader
@@ -81,10 +82,10 @@ EOF
: 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
@@ -103,6 +104,12 @@ exit $ret
%changelog
+* Fri Feb 3 2023 Remi Collet <remi@remirepo.net> - 3.0.0-1
+- update to 3.0.0
+- raise dependency on PHP 8.1
+- rename to php-sebastian-object-reflector3
+- move to /usr/share/php/SebastianBergmann/ObjectReflector3
+
* Mon Oct 26 2020 Remi Collet <remi@remirepo.net> - 2.0.4-1
- update to 2.0.4