summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmakesrc.sh4
-rw-r--r--phpunit9.spec11
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 <remi@remirepo.net> - 9.6.16-2
+- recommend phpunit11
+
* Fri Jan 19 2024 Remi Collet <remi@remirepo.net> - 9.6.16-1
- update to 9.6.16