]> git.pld-linux.org Git - packages/stikked.git/commitdiff
use system phpqrcode
authorElan Ruusamäe <glen@delfi.ee>
Thu, 9 Oct 2014 10:50:48 +0000 (13:50 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 9 Oct 2014 10:51:46 +0000 (13:51 +0300)
stikked.spec
system-phpqrcode.patch [new file with mode: 0644]

index b315cf320195e4c7c380bb13583a61a2f593248d..f562e9fb64031a6c75ca90a87f9bbf3381b08ee9 100644 (file)
@@ -20,6 +20,7 @@ Source1:      apache.conf
 Source2:       lighttpd.conf
 Patch0:                config.patch
 Patch1:                system-geshi.patch
+Patch2:                system-phpqrcode.patch
 URL:           https://github.com/claudehohl/Stikked
 BuildRequires: rpmbuild(macros) >= 1.553
 Requires:      php(core) >= %{php_min_version}
@@ -33,6 +34,7 @@ Requires:     webserver(alias)
 Requires:      webserver(indexfile)
 Requires:      webserver(php)
 Suggests:      php(gd)
+Suggests:      php-phpqrcode
 Suggests:      webserver(expires)
 Suggests:      webserver(rewrite)
 BuildArch:     noarch
@@ -72,12 +74,13 @@ rm htdocs/system/.htaccess
 mv htdocs/application/config .
 mv config/stikked.php{.dist,}
 
-# use system geshi package
+# use system packages
 rm -r htdocs/application/libraries/geshi
+rm -r htdocs/application/libraries/phpqrcode
 
 %patch0 -p1
 %patch1 -p1
-
+%patch2 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/system-phpqrcode.patch b/system-phpqrcode.patch
new file mode 100644 (file)
index 0000000..c38fc2d
--- /dev/null
@@ -0,0 +1,11 @@
+--- Stikked-0.9.0/./htdocs/themes/default/views/view/qr.php~   2014-10-08 23:20:57.572987805 +0300
++++ Stikked-0.9.0/./htdocs/themes/default/views/view/qr.php    2014-10-09 13:10:54.636364691 +0300
+@@ -4,7 +4,7 @@
+  * Function list:
+  * Classes list:
+  */
+-require_once ('./application/libraries/phpqrcode/qrlib.php');
++require_once '/usr/share/php/phpqrcode/phpqrcode.php';
+ $qrurl = $url;
+ if ($snipurl != false) 
This page took 0.107568 seconds and 4 git commands to generate.