summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-10-23 13:54:00 +0200
committerRemi Collet <remi@php.net>2023-10-23 13:54:00 +0200
commitd40fd3cbd22209d54711d6a15d48378d2350407d (patch)
tree649b6c02a49305410ed8506fe7db01ba55be5ff7
parent8b59f426a81d19bd630e94e84688813ce9e9e3b3 (diff)
update to 1.7.39 (no change)
-rw-r--r--php-tecnickcom-tc-lib-file.spec24
1 files changed, 18 insertions, 6 deletions
diff --git a/php-tecnickcom-tc-lib-file.spec b/php-tecnickcom-tc-lib-file.spec
index 827545e..1ceb91c 100644
--- a/php-tecnickcom-tc-lib-file.spec
+++ b/php-tecnickcom-tc-lib-file.spec
@@ -6,7 +6,7 @@
#
# Please, preserve the changelog entries
#
-%global gh_commit d28c09ab0081997573984751c10f5b8216801800
+%global gh_commit 06c94a9396343863d27048e7c7695f67d1566096
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global c_vendor tecnickcom
%global gh_owner tecnickcom
@@ -15,7 +15,7 @@
%global with_tests 0%{!?_without_tests:1}
Name: php-%{gh_owner}-%{gh_project}
-Version: 1.7.37
+Version: 1.7.39
Release: 1%{?dist}
Summary: PHP library to read byte-level data from files
@@ -26,8 +26,15 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit
BuildArch: noarch
%if %{with_tests}
# For tests
+# remirepo:1
+%if 0%{?fedora} >= 37 || 0%{?rhel} >= 10
+%global phpunit %{_bindir}/phpunit10
+BuildRequires: phpunit10
+# remirepo:4
+%else
%global phpunit %{_bindir}/phpunit9
BuildRequires: phpunit9 >= 9.5.27
+%endif
BuildRequires: php(language) >= 5.4
BuildRequires: php-curl
BuildRequires: php-pcre
@@ -85,11 +92,12 @@ EOF
sed -i 's:src:File:g' -i test/DirTest.php
ret=0
-for cmdarg in "php %{phpunit}" "php80 %{phpunit}" php81 php82 php83; do
+for cmdarg in php "php80 %{_bindir}/phpunit9" php81 php82 php83; do
if which $cmdarg; then
set $cmdarg
- $1 ${2:-%{_bindir}/phpunit10} --migrate-configuration || :
- $1 ${2:-%{_bindir}/phpunit10} --no-coverage || ret=1
+ cp phpunit.xml.dist phpunit.xml
+ $1 ${2:-%{phpunit}} --migrate-configuration || :
+ $1 ${2:-%{phpunit}} --no-coverage || ret=1
fi
done
exit $ret
@@ -99,16 +107,20 @@ exit $ret
%files
+# remirepo:1
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc composer.json
-%doc README.md
+%doc *.md
%dir %{_datadir}/php/Com
%dir %{_datadir}/php/Com/Tecnick
%{php_project}
%changelog
+* Mon Oct 23 2023 Remi Collet <remi@remirepo.net> - 1.7.39-1
+- update to 1.7.39 (no change)
+
* Thu Oct 12 2023 Remi Collet <remi@remirepo.net> - 1.7.37-1
- update to 1.7.37