summaryrefslogtreecommitdiffstats
path: root/phpunit8.spec
diff options
context:
space:
mode:
Diffstat (limited to 'phpunit8.spec')
-rw-r--r--phpunit8.spec11
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