]> git.pld-linux.org Git - packages/php-pecl-spidermonkey.git/commitdiff
Fix build on x86_64 auto/th/php-pecl-spidermonkey-1.0.0-1
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 8 Aug 2012 09:55:20 +0000 (11:55 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 8 Aug 2012 09:55:20 +0000 (11:55 +0200)
Release 1

lib64.patch [new file with mode: 0644]
php-pecl-spidermonkey.spec

diff --git a/lib64.patch b/lib64.patch
new file mode 100644 (file)
index 0000000..bbe4d94
--- /dev/null
@@ -0,0 +1,11 @@
+--- php-pecl-spidermonkey-1.0.0/spidermonkey-1.0.0/config.m4~  2012-04-19 05:50:36.000000000 +0200
++++ php-pecl-spidermonkey-1.0.0/spidermonkey-1.0.0/config.m4   2012-08-08 11:54:07.552281177 +0200
+@@ -36,7 +36,7 @@
+     done
+     # test for the libname independantely
+     for j in js mozjs mozjs185; do
+-      test -f $i/lib/lib$j.so && SPIDERMONKEY_LIBNAME=$j && break
++      test -f $i/lib64/lib$j.so && SPIDERMONKEY_LIBNAME=$j && break
+     done
+     test -f $i/include/$j/jsapi.h && break
+   done
index 3020d3e1e7264ab1226a25a3802dd046084afc04..65b315f24bdad716e605ddb9831b06e86d32e467 100644 (file)
@@ -4,11 +4,12 @@ Summary:      %{_modname} - Spidermonkey JavaScript engine for PHP
 Summary(pl.UTF-8):     %{_modname} - silnik JavaScript Spidermonkey dla PHP
 Name:          php-pecl-%{_modname}
 Version:       1.0.0
-Release:       0.1
+Release:       1
 License:       PHP 3.01
 Group:         Development/Languages/PHP
 Source0:       http://pecl.php.net/get/%{_modname}-%{version}.tgz
 # Source0-md5: 1a7a4043fa6c86bb7e3cb24e794c284b
+Patch0:                lib64.patch
 URL:           http://pecl.php.net/package/%{_modname}/
 BuildRequires: js185-devel
 BuildRequires: php-devel >= 4:5.3.0
@@ -32,6 +33,9 @@ To rozszerzenie ma w PECL status: %{_status}.
 
 %prep
 %setup -q -c
+%ifarch %{x8664}
+%patch0 -p1
+%endif
 mv %{_modname}-%{version}/* .
 
 %build
This page took 0.093031 seconds and 4 git commands to generate.