summaryrefslogtreecommitdiffstats
path: root/composer-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-08-23 09:04:07 +0200
committerRemi Collet <fedora@famillecollet.com>2015-08-23 09:04:07 +0200
commit527e81b8bf11ff8384a427d5ba71c8dd841cd4af (patch)
tree5ddaf56efa3c56377d5610795e540e57d337b4b4 /composer-rpm.patch
parent487fbf9621ebb4b642aa9385a81d99a0e6b24196 (diff)
composer-1.0.0-0.9.20150820gitf1aa655
Diffstat (limited to 'composer-rpm.patch')
-rw-r--r--composer-rpm.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/composer-rpm.patch b/composer-rpm.patch
index d53705a..35246d0 100644
--- a/composer-rpm.patch
+++ b/composer-rpm.patch
@@ -22,3 +22,15 @@ diff -up ./src/Composer/Json/JsonFile.php.rpm ./src/Composer/Json/JsonFile.php
$schemaData = json_decode(file_get_contents($schemaFile));
if ($schema === self::LAX_SCHEMA) {
+diff -up ./src/Composer/Autoload/AutoloadGenerator.php.rpm ./src/Composer/Autoload/AutoloadGenerator.php
+--- ./src/Composer/Autoload/AutoloadGenerator.php.rpm 2015-08-23 08:55:33.537606407 +0200
++++ ./src/Composer/Autoload/AutoloadGenerator.php 2015-08-23 08:56:17.341809277 +0200
+@@ -268,7 +268,7 @@ EOF;
+ file_put_contents($targetDir.'/autoload_real.php', $this->getAutoloadRealFile(true, (bool) $includePathFileContents, $targetDirLoader, (bool) $includeFilesFileContents, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader, $classMapAuthoritative));
+
+ $this->safeCopy(__DIR__.'/ClassLoader.php', $targetDir.'/ClassLoader.php');
+- $this->safeCopy(__DIR__.'/../../../LICENSE', $targetDir.'/LICENSE');
++ $this->safeCopy((getenv('BUILDROOT')?:'') . '/usr/share/composer/LICENSE', $targetDir.'/LICENSE');
+
+ $this->eventDispatcher->dispatchScript(ScriptEvents::POST_AUTOLOAD_DUMP, $this->devMode, array(), array(
+ 'optimize' => (bool) $scanPsr0Packages,