summaryrefslogtreecommitdiffstats
path: root/php-composer-spdx-licenses-rpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-composer-spdx-licenses-rpm.patch')
-rw-r--r--php-composer-spdx-licenses-rpm.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/php-composer-spdx-licenses-rpm.patch b/php-composer-spdx-licenses-rpm.patch
new file mode 100644
index 0000000..08bc3f6
--- /dev/null
+++ b/php-composer-spdx-licenses-rpm.patch
@@ -0,0 +1,12 @@
+diff -up src/SpdxLicenses.php.rpm src/SpdxLicenses.php
+--- src/SpdxLicenses.php.rpm 2015-07-17 07:41:29.007308656 +0200
++++ src/SpdxLicenses.php 2015-07-17 07:43:40.425973108 +0200
+@@ -178,7 +178,7 @@ class SpdxLicenses
+ */
+ public static function getResourcesDir()
+ {
+- return dirname(__DIR__) . '/res';
++ return (getenv('BUILDROOT_SPDX')?:'') . '/usr/share/php-composer-spdx-licenses';
+ }
+
+ private function loadLicenses()