summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-04-08 10:32:30 +0200
committerRemi Collet <remi@php.net>2025-04-08 10:32:30 +0200
commitfb4039825eddffbbdc9e8240b2d8102e266c9b7c (patch)
tree2a7cdc7c4de0f43df8efd1b1843b54bfcf389228
parentda544da922d5a59893460c3b746555868742eae6 (diff)
update to 1.1.5 (no change)HEADmaster
switch to phpunit12
-rw-r--r--composer.json9
-rw-r--r--php-doctrine-deprecations.spec35
2 files changed, 30 insertions, 14 deletions
diff --git a/composer.json b/composer.json
index a7a51e3..91ba9e6 100644
--- a/composer.json
+++ b/composer.json
@@ -8,12 +8,15 @@
"php": "^7.1 || ^8.0"
},
"require-dev": {
- "doctrine/coding-standard": "^9 || ^12",
- "phpstan/phpstan": "1.4.10 || 2.0.3",
+ "doctrine/coding-standard": "^9 || ^12 || ^13",
+ "phpstan/phpstan": "1.4.10 || 2.1.11",
"phpstan/phpstan-phpunit": "^1.0 || ^2",
- "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
+ "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.5 || ^11.5 || ^12",
"psr/log": "^1 || ^2 || ^3"
},
+ "conflict": {
+ "phpunit/phpunit": "<=7.5 || >=13"
+ },
"suggest": {
"psr/log": "Allows logging deprecations via PSR-3 logger implementation"
},
diff --git a/php-doctrine-deprecations.spec b/php-doctrine-deprecations.spec
index e092532..bec3542 100644
--- a/php-doctrine-deprecations.spec
+++ b/php-doctrine-deprecations.spec
@@ -1,6 +1,6 @@
# remirepo/fedora spec file for php-doctrine-deprecations
#
-# SPDX-FileCopyrightText: Copyright 2021-2024 Remi Collet
+# SPDX-FileCopyrightText: Copyright 2021-2025 Remi Collet
# SPDX-License-Identifier: CECILL-2.1
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
@@ -9,7 +9,7 @@
%bcond_without tests
-%global gh_commit 31610dbb31faa98e6b5447b62340826f54fbc4e9
+%global gh_commit 459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner doctrine
%global gh_project deprecations
@@ -21,7 +21,7 @@
%global ns_project Deprecations
Name: php-%{pk_vendor}-%{pk_project}
-Version: 1.1.4
+Version: 1.1.5
Release: 1%{?dist}
Summary: A small layer on top of triggeFr_error or PSR-3 logging
@@ -36,13 +36,21 @@ BuildRequires: php-fedora-autoloader-devel
%if %{with tests}
# From composer.json
# "require-dev": {
-# "doctrine/coding-standard": "^9 || ^12",
-# "phpstan/phpstan": "1.4.10 || 2.0.3",
+# "doctrine/coding-standard": "^9 || ^12 || ^13",
+# "phpstan/phpstan": "1.4.10 || 2.1.11",
# "phpstan/phpstan-phpunit": "^1.0 || ^2",
-# "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
+# "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.5 || ^11.5 || ^12",
# "psr/log": "^1 || ^2 || ^3"
BuildRequires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 4)
-BuildRequires: phpunit9 >= 9.5
+# remirepo:1
+%if 0%{?fedora} || 0%{?rhel} >= 10
+%global phpunit %{_bindir}/phpunit12
+BuildRequires: phpunit12
+# remirepo:4
+%else
+%global phpunit %{_bindir}/phpunit10
+BuildRequires: phpunit10 >= 10.5
+%endif
%endif
# From composer.json
@@ -124,12 +132,13 @@ cat << 'EOF' | tee -a vendor/autoload.php
EOF
ret=0
-for cmd in php php81 php82 php83 php84; do
+for cmd in "php %{phpunit}" "php81 %{_bindir}/phpunit10" "php82 %{_bindir}/phpunit11" "php83 %{_bindir}/phpunit12" "php84 %{_bindir}/phpunit12"; do
if which $cmd; then
- $cmd -d auto_prepend_file=vendor/autoload.php \
- %{_bindir}/phpunit9 \
+ set $cmd
+ $1 -d auto_prepend_file=vendor/autoload.php \
+ $2 \
--filter '^((?!(testDeprecationTrackByEnv)).)*$' \
- --verbose || ret=1
+ || ret=1
fi
done
@@ -147,6 +156,10 @@ exit $ret
%changelog
+* Tue Apr 8 2025 Remi Collet <remi@remirepo.net> - 1.1.5-1
+- update to 1.1.5 (no change)
+- switch to phpunit12
+
* Mon Dec 9 2024 Remi Collet <remi@remirepo.net> - 1.1.4-1
- update to 1.1.4
- re-license spec file to CECILL-2.1