From c3f3395d61d6bcc8343a9aa95086a6ed63daab2f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 27 Jun 2017 14:42:51 +0200 Subject: New package --- php-endroid-qrcode-el6-rpm.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 php-endroid-qrcode-el6-rpm.patch (limited to 'php-endroid-qrcode-el6-rpm.patch') 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); + } + -- cgit