diff options
author | Remi Collet <remi@remirepo.net> | 2017-06-27 14:42:51 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-06-27 14:42:51 +0200 |
commit | c3f3395d61d6bcc8343a9aa95086a6ed63daab2f (patch) | |
tree | be761cf448f9ac4ac3a69136849fc932812bf148 /php-endroid-qrcode-el6-rpm.patch |
New package
Diffstat (limited to 'php-endroid-qrcode-el6-rpm.patch')
-rw-r--r-- | php-endroid-qrcode-el6-rpm.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/php-endroid-qrcode-el6-rpm.patch b/php-endroid-qrcode-el6-rpm.patch new file mode 100644 index 0000000..beb343a --- /dev/null +++ b/php-endroid-qrcode-el6-rpm.patch @@ -0,0 +1,17 @@ +diff -up src/QrCode.php.rpm src/QrCode.php +--- src/QrCode.php.rpm 2017-06-27 14:19:50.099124286 +0200 ++++ src/QrCode.php 2017-06-27 14:19:54.373148551 +0200 +@@ -177,9 +177,10 @@ class QrCode + */ + public function __construct($text = '') + { +- $this->setPath(__DIR__.'/../assets/data'); +- $this->setImagePath(__DIR__.'/../assets/image'); +- $this->setLabelFontPath(__DIR__.'/../assets/font/opensans.ttf'); ++ $assets = (getenv('RPM_ASSETS_BUILDROOT') ?: '') . '@ASSETS@'; ++ $this->setPath($assets.'/data'); ++ $this->setImagePath($assets.'/image'); ++ $this->setLabelFontPath($assets.'/font/opensans.ttf'); + $this->setText($text); + } + |