summaryrefslogtreecommitdiffstats
path: root/phpunit10.spec
diff options
context:
space:
mode:
Diffstat (limited to 'phpunit10.spec')
-rw-r--r--phpunit10.spec14
1 files changed, 14 insertions, 0 deletions
diff --git a/phpunit10.spec b/phpunit10.spec
index fed5eb0..2b6517c 100644
--- a/phpunit10.spec
+++ b/phpunit10.spec
@@ -14,6 +14,12 @@
%bcond_without tests
+%if 0%{?fedora} >= 39 || 0%{?rhel} >= 10
+%bcond_without defcmd
+%else
+%bcond_with defcmd
+%endif
+
%global gh_commit 80cab181aebc2efac422940443e28db556137637
#global gh_date 20150927
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
@@ -277,6 +283,10 @@ mkdir %{buildroot}%{php_home}/%{ns_vendor}/Extensions
install -D -p -m 755 phpunit %{buildroot}%{_bindir}/%{name}
install -p -m 644 phpunit.xsd %{buildroot}%{php_home}/%{ns_vendor}/phpunit.xsd
+%if %{with defcmd}
+ln -s %{name} %{buildroot}%{_bindir}/phpunit
+%endif
+
%if %{with tests}
%check
@@ -302,12 +312,16 @@ exit $ret
%doc README.md ChangeLog-%{ver_major}.%{ver_minor}.md
%doc composer.json
%{_bindir}/%{name}
+%if %{with defcmd}
+%{_bindir}/phpunit
+%endif
%{php_home}/%{ns_vendor}
%changelog
* Fri Dec 1 2023 Remi Collet <remi@remirepo.net> - 10.5.0-1
- update to 10.5.0
+- provide phpunit command
* Thu Oct 26 2023 Remi Collet <remi@remirepo.net> - 10.4.2-1
- update to 10.4.2