diff options
author | Remi Collet <remi@remirepo.net> | 2020-03-17 16:26:22 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-03-17 16:26:22 +0100 |
commit | cdc27edd2c3532a919d23332aab72c239ada59a1 (patch) | |
tree | aeda6f1dd087111cc45df9c24a135bd026ba18dc | |
parent | ed55952845e42ad6b4614f249017ccc3b04177f7 (diff) |
load phpunit-selenium autoloader if present
own /usr/share/php/PHPUnit8/Extensions
-rw-r--r-- | phpunit8.spec | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/phpunit8.spec b/phpunit8.spec index 3b444fb..271c64b 100644 --- a/phpunit8.spec +++ b/phpunit8.spec @@ -25,7 +25,7 @@ %global ver_major 8 %global ver_minor 5 %global ver_patch 2 -%global specrel 1 +%global specrel 2 Name: %{pk_project}%{ver_major} Version: %{ver_major}.%{ver_minor}.%{ver_patch} @@ -237,6 +237,10 @@ cat << 'EOF' | tee -a src/autoload.php '%{php_home}/PharIo/Manifest/autoload.php', '%{php_home}/PharIo/Version/autoload.php', ]); +// Extensions +\Fedora\Autoloader\Dependencies::optional( + glob("%{php_home}/%{ns_vendor}/Extensions/*/autoload.php") +); EOF cat src/autoload.php @@ -252,6 +256,7 @@ cat src/autoload.php %install mkdir -p %{buildroot}%{php_home} cp -pr src %{buildroot}%{php_home}/%{ns_vendor} +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 @@ -282,6 +287,10 @@ exit $ret %changelog +* Tue Mar 17 2020 Remi Collet <remi@remirepo.net> - 8.5.2-2 +- load phpunit-selenium autoloader if present +- own /usr/share/php/PHPUnit8/Extensions + * Wed Jan 8 2020 Remi Collet <remi@remirepo.net> - 8.5.2-1 - update to 8.5.2 |