diff options
Diffstat (limited to 'php-phpunit-php-invoker4.spec')
-rw-r--r-- | php-phpunit-php-invoker4.spec | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/php-phpunit-php-invoker4.spec b/php-phpunit-php-invoker4.spec index d179da4..4fe19af 100644 --- a/php-phpunit-php-invoker4.spec +++ b/php-phpunit-php-invoker4.spec @@ -7,8 +7,7 @@ # Please, preserve the changelog entries # -# disabled until phpunit10 available -%bcond_with tests +%bcond_without tests %global gh_commit f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) @@ -25,7 +24,7 @@ Name: php-%{pk_vendor}-%{pk_project}%{major} Version: 4.0.0 -Release: 1%{?dist} +Release: 3%{?dist} Summary: Invoke callables with a timeout, version %{major} License: BSD-3-Clause @@ -35,7 +34,7 @@ Source1: makesrc.sh BuildArch: noarch BuildRequires: php(language) >= 8.1 -Requires: php-spl +BuildRequires: php-spl BuildRequires: php-fedora-autoloader-devel %if %{with tests} # From composer.json, require-dev @@ -60,7 +59,9 @@ Provides: php-composer(%{pk_vendor}/%{pk_project}) = %{version} %description phpunit/php-invoker provides the means to invoke a callable with a timeout. -Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}/autoload.php +This package provides version %{major} of %{pk_vendor}/%{pk_project} library. + +Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php %prep @@ -87,7 +88,7 @@ mkdir vendor : Run upstream test suite ret=0 -for cmd in php php81 php82; do +for cmd in php php81 php82 php83; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ %{_bindir}/phpunit10 || ret=1 @@ -108,6 +109,9 @@ exit $ret %changelog +* Wed Aug 23 2023 Remi Collet <remi@remirepo.net> - 4.0.0-3 +- Enable test suite + * Fri Feb 3 2023 Remi Collet <remi@remirepo.net> - 4.0.0-1 - update to 4.0.0 - raise dependency on PHP 8.1 |