From 6acb71300a84b7f900df2886b50f2f14b872b7d2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 29 Jan 2016 08:02:59 +0100 Subject: php-phpunit-PHPUnit-Selenium: fix autoloader --- php-phpunit-PHPUnit-Selenium.spec | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/php-phpunit-PHPUnit-Selenium.spec b/php-phpunit-PHPUnit-Selenium.spec index e6dc535..383ffe8 100644 --- a/php-phpunit-PHPUnit-Selenium.spec +++ b/php-phpunit-PHPUnit-Selenium.spec @@ -17,7 +17,7 @@ Name: php-phpunit-PHPUnit-Selenium Version: 2.0.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Selenium RC integration for PHPUnit Group: Development/Libraries @@ -28,6 +28,7 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php(language) >= 5.3.3 +BuildRequires: %{_bindir}/phpab # From composer.json # "php": ">=5.3.3", @@ -72,15 +73,14 @@ rm PHPUnit/Extensions/SeleniumCommon/Autoload.php.in %build -# Empty build section, most likely nothing required. - -# If upstream drop Autoload.php, command to generate it. -# Also remember to fix the command to use it. - -#phpab \ -# --output PHPUnit/Extensions/SeleniumCommon/Autoload.php \ -# --template PHPUnit/Extensions/SeleniumCommon/Autoload.php.in \ -# PHPUnit +# Regenerate Autoloader as upstream one is outdated +%{_bindir}/phpab \ + --output PHPUnit/Extensions/SeleniumCommon/Autoload.php \ + PHPUnit +cat << 'EOF' >>PHPUnit/Extensions/SeleniumCommon/Autoload.php +// Dependency +require_once 'File/Iterator/Autoload.php'; +EOF %install @@ -110,6 +110,9 @@ fi %changelog +* Fri Jan 29 2016 Remi Collet - 2.0.0-2 +- fix autoloader + * Mon Jan 4 2016 Remi Collet - 2.0.0-1 - update to 2.0.0 - raise dependency on PHPUnit >=4.8,<=6.0 -- cgit