|
|
@@ -23,7 +23,7 @@
|
|
|
##
|
|
|
|
|
|
# package version
|
|
|
-%define V_js 1.6.20060803
|
|
|
+%define V_js 1.6.20060820
|
|
|
%define V_javascript 1.00_02
|
|
|
%define V_javascript_spidermonkey 0.17
|
|
|
%define V_javascript_squish 0.05
|
|
|
@@ -48,6 +48,7 @@ Release: 20060820
|
|
|
%option with_dso yes
|
|
|
%option with_perl no
|
|
|
%option with_editline no
|
|
|
+%option with_utf8 no
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://ftp.ossp.org/pkg/lib/js/js-%{V_js}.tar.gz
|
|
|
@@ -147,6 +148,9 @@ AutoReqProv: no
|
|
|
%endif
|
|
|
%if "%{with_dso}" == "yes"
|
|
|
--with-dso \
|
|
|
+%endif
|
|
|
+%if "%{with_utf8}" == "yes"
|
|
|
+ --with-utf8 \
|
|
|
%endif
|
|
|
--disable-shared
|
|
|
%{l_make} %{l_mflags}
|
|
|
@@ -157,6 +161,9 @@ AutoReqProv: no
|
|
|
( cd JavaScript-%{V_javascript}
|
|
|
export JS_LIB="../js-%{V_js}/.libs"
|
|
|
export JS_INC="../js-%{V_js}/src"
|
|
|
+%if "%{with_utf8}" == "yes"
|
|
|
+ export JS_C_STRINGS_ARE_UTF8=1
|
|
|
+%endif
|
|
|
%{l_prefix}/bin/perl-openpkg configure build
|
|
|
) || exit $?
|
|
|
( cd JavaScript-SpiderMonkey-%{V_javascript_spidermonkey}
|