diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-04-03 14:25:37 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-04-03 14:25:37 +0200 |
commit | 51a68ad73abbfa187d2ef741946d7794551fbb70 (patch) | |
tree | c2740a5d0a116ad0f3b9ab46a6d18f0bb51aaa7a | |
parent | a0543a2b2b2ca90c3be7c8f8dc9f69b87a3c779c (diff) |
php-phpunit-File-Iterator: fix autoload
-rw-r--r-- | php-phpunit-File-Iterator.spec | 18 |
1 files 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 |