From 911021e61961898baa042c2f735a18089ef3e69e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 5 Feb 2024 12:58:08 +0100 Subject: recommend phpunit11 --- makesrc.sh | 4 +++- phpunit9.spec | 11 +++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/makesrc.sh b/makesrc.sh index 2b84cb1..45fea74 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -8,6 +8,8 @@ VERSION=$(sed -n '/^%global upstream_version/{s/.* //;p}' $NAME.spec) COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec) SHORT=${COMMIT:0:7} +DATE=$(date -d "$DATE -4 days" +%Y-%m-%d) + if [ -f $NAME-$VERSION-$SHORT.tgz ]; then echo "$NAME-$VERSION-$SHORT.tgz already there" else @@ -15,7 +17,7 @@ else echo "Cloning..." rm -rf $PROJECT-$COMMIT - git clone --jobs 8 https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT || exit 1 + git clone --shallow-since=$DATE https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT || exit 1 echo "Getting commit..." pushd $PROJECT-$COMMIT diff --git a/phpunit9.spec b/phpunit9.spec index 13a4767..dfe1ebc 100644 --- a/phpunit9.spec +++ b/phpunit9.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for phpunit9 # -# Copyright (c) 2010-2023 Remi Collet +# Copyright (c) 2010-2024 Remi Collet # # License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ @@ -31,7 +31,7 @@ Name: %{pk_project}%{ver_major} Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: The PHP Unit Testing framework version %{ver_major} License: BSD-3-Clause @@ -166,6 +166,10 @@ Suggests: php-soap Suggests: php-xdebug # recommends latest versions Recommends: phpunit10 +# Fedora 38+ only until 8.1 EOL +%if 0%{?fedora} >= 38 +Recommends: phpunit11 +%endif # remirepo:23 %else Requires: php-doctrine-instantiator >= 1.3.1 @@ -315,6 +319,9 @@ exit $ret %changelog +* Mon Feb 5 2024 Remi Collet - 9.6.16-2 +- recommend phpunit11 + * Fri Jan 19 2024 Remi Collet - 9.6.16-1 - update to 9.6.16 -- cgit