2 Summary: JavaScript interpreter
3 License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+
4 Group: Development/Languages/Other
7 Url: http://www.mozilla.org/js/
8 Source0: http://ftp.mozilla.org/pub/mozilla.org/%{name}/%{name}-%{version}.tar.bz2
9 Source98: baselibs.conf
10 BuildRequires: autoconf213
11 BuildRequires: gcc-c++
12 BuildRequires: nspr-devel
13 BuildRequires: pkg-config
19 JavaScript is the Netscape-developed object scripting language used in millions
20 of web pages and server applications worldwide. Netscape's JavaScript is a
21 superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
22 with only mild differences from the published standard.
24 %package -n libmozjs185
25 Summary: JavaScript library
26 Group: System/Libraries
28 %description -n libmozjs185
29 JavaScript is the Netscape-developed object scripting language used in millions
30 of web pages and server applications worldwide. Netscape's JavaScript is a
31 superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
32 with only mild differences from the published standard.
36 Summary: Header files, libraries and development documentation for %{name}
37 Group: Development/Libraries/Other
38 Requires: libmozjs185 = %{version}-%{release}
40 Provides: libjs-devel = %{version}-%{release}
41 Provides: mozjs185-devel
44 This package contains the header files, static libraries and development
45 documentation for %{name}. If you like to develop programs using %{name},
46 you will need to install %{name}-devel.
49 %setup -q -n %{name}-%{version}
52 export MOZILLA_VERSION=%{version}
56 export CPPFLAGS+=" -DENABLE_JIT=0 "
57 export JIT_CONFIG_OPT="--disable-tracejit --disable-methodjit"
59 %configure --with-system-nspr --enable-threadsafe $JIT_CONFIG_OPT
63 %{__make} %{?_smp_mflags} -C src \
65 XCFLAGS="%{optflags} -fPIC " \
71 %{__rm} -rf %{buildroot}%{_libdir}/libmozjs185-1.0.a
72 # SO links are created wrong, fixing them
73 %{__rm} -rf %{buildroot}%{_libdir}/libmozjs185.so.1.0
74 %{__rm} -rf %{buildroot}%{_libdir}/libmozjs185.so
75 %{__ln_s} libmozjs185.so.1.0.0 %{buildroot}%{_libdir}/libmozjs185.so.1.0
76 %{__ln_s} libmozjs185.so.1.0.0 %{buildroot}%{_libdir}/libmozjs185.so
78 %{__install} -m 0755 shell/js %{buildroot}%{_bindir}/
79 # headers are installed with executable permissions
80 chmod 644 %{buildroot}%{_includedir}/js/*
83 %{__rm} -rf %{buildroot}
85 %post -n libmozjs185 -p /sbin/ldconfig
87 %postun -n libmozjs185 -p /sbin/ldconfig
90 %defattr(-,root,root,-)
91 %doc js/src/README.html
95 %defattr(-,root,root,-)
99 %defattr(-,root,root,-)
102 %{_libdir}/pkgconfig/*.pc