summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-league-flysystem.spec7
1 files changed, 4 insertions, 3 deletions
diff --git a/php-league-flysystem.spec b/php-league-flysystem.spec
index 81df1de..6cb396c 100644
--- a/php-league-flysystem.spec
+++ b/php-league-flysystem.spec
@@ -102,12 +102,13 @@ cp -pr src %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}
mkdir vendor
cat << 'EOF' | tee vendor/autoload.php
<?php
-// Library
+// Installed library
require '%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php';
-// Test suite
-require_once '/%{_datadir}/php/Mockery/autoload.php';
+// Dependency
+require_once '%{_datadir}/php/Mockery/autoload.php';
+// Test suite
require_once '%{_datadir}/php/Symfony/Component/ClassLoader/Psr4ClassLoader.php';
$Loader = new \Symfony\Component\ClassLoader\Psr4ClassLoader();
$Loader->addPrefix("League\\Flysystem\\Stub\\", dirname(__DIR__).'/stub');