fix test suite autoloader (FTBFS detected by Koschei)
This commit is contained in:
parent
cc56ead7ff
commit
279b5907c5
1 changed files with 6 additions and 1 deletions
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
Name: php-%{composer_vendor}-%{composer_project}
|
||||
Version: %{github_version}
|
||||
Release: 1%{?github_release}%{?dist}
|
||||
Release: 2%{?github_release}%{?dist}
|
||||
Summary: A set of code generator utilities built on top of PHP-Parsers
|
||||
|
||||
Group: Development/Libraries
|
||||
|
|
@ -87,6 +87,8 @@ cp -rp src/* %{buildroot}%{phpdir}/
|
|||
# Create autoloader
|
||||
cat > autoload.php <<'AUTOLOAD'
|
||||
<?php
|
||||
require_once 'PhpParser/Autoloader.php';
|
||||
PhpParser\Autoloader::register();
|
||||
|
||||
spl_autoload_register(function ($class) {
|
||||
$src = str_replace('\\', '/', $class).'.php';
|
||||
|
|
@ -111,6 +113,9 @@ AUTOLOAD
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri May 22 2015 Remi Collet <remi@fedoraproject.org> - 0.3.1-2
|
||||
- fix test suite autoloader (FTBFS detected by Koschei)
|
||||
|
||||
* Wed Feb 25 2015 Remi Collet <remi@fedoraproject.org> - 0.3.1-1
|
||||
- update to 0.3.1 (no change)
|
||||
- raise nikic/php-parser max version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue