From 51a68ad73abbfa187d2ef741946d7794551fbb70 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 3 Apr 2015 14:25:37 +0200 Subject: php-phpunit-File-Iterator: fix autoload --- php-phpunit-File-Iterator.spec | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/php-phpunit-File-Iterator.spec b/php-phpunit-File-Iterator.spec index 1e65c61..61e82c5 100644 --- a/php-phpunit-File-Iterator.spec +++ b/php-phpunit-File-Iterator.spec @@ -52,21 +52,27 @@ FilterIterator implementation that filters files based on a list of suffixes. %prep %setup -q -n %{gh_project}-%{gh_commit} +# Restore PSR-0 tree +mkdir -p File/Iterator/ +mv src/* File/Iterator/ +mv File/Iterator/Iterator.php File/Iterator.php + + %build %{_bindir}/phpab \ - --output src/Autoload.php \ - src + --output File/Iterator/Autoload.php \ + --basedir File/Iterator \ + File +cat File/Iterator/Autoload.php %install rm -rf %{buildroot} # Restore PSR-0 tree # see https://github.com/sebastianbergmann/php-file-iterator/issues/26 -mkdir -p %{buildroot}%{php_home}/File -cp -pr src %{buildroot}%{php_home}/File/Iterator -mv %{buildroot}%{php_home}/File/Iterator/Iterator.php \ - %{buildroot}%{php_home}/File/Iterator.php +mkdir -p %{buildroot}%{php_home} +cp -pr File %{buildroot}%{php_home}/File %clean -- cgit