1 | Summary: JavaScript interpreter and libraries |
---|
2 | Summary(ja): JavaScript インタプリタ及びライブラリ |
---|
3 | Name: mozjs24 |
---|
4 | Version: 24.2.0 |
---|
5 | Release: 2%{?_dist_release} |
---|
6 | License: MPLv2.0 |
---|
7 | Group: Development/Languages |
---|
8 | URL: http://www.mozilla.org/js/ |
---|
9 | Source0: http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-%{version}.tar.bz2 |
---|
10 | |
---|
11 | Patch0: js17-build-fixes.patch |
---|
12 | Patch1: mozjs24-0001-Add-AArch64-support.patch |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
15 | |
---|
16 | Buildrequires: nspr-devel >= 4.7 |
---|
17 | Buildrequires: readline-devel |
---|
18 | BuildRequires: python |
---|
19 | BuildRequires: zip |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | Packager: Takemikaduchi |
---|
24 | |
---|
25 | %description |
---|
26 | JavaScript is the Netscape-developed object scripting language used in millions |
---|
27 | of web pages and server applications worldwide. Netscape's JavaScript is a |
---|
28 | superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, |
---|
29 | with only mild differences from the published standard. |
---|
30 | |
---|
31 | %package devel |
---|
32 | Summary: Header files, libraries and development documentation for %{name} |
---|
33 | Summary(ja): %{name} のヘッダファイル、ライブラリ及び開発用ドキュメント |
---|
34 | Group: Development/Libraries |
---|
35 | Requires: %{name} = %{version}-%{release} |
---|
36 | Requires: pkgconfig |
---|
37 | Provides: libjs-devel = %{version}-%{release} |
---|
38 | |
---|
39 | %description devel |
---|
40 | This package contains the header files, static libraries and development |
---|
41 | documentation for %{name}. If you like to develop programs using %{name}, |
---|
42 | you will need to install %{name}-devel. |
---|
43 | |
---|
44 | |
---|
45 | %prep |
---|
46 | %setup -q -n mozjs-%{version} |
---|
47 | # Delete bundled sources |
---|
48 | rm js/src/editline -rf |
---|
49 | rm js/src/ctypes/libffi -rf |
---|
50 | %patch0 -p1 |
---|
51 | %patch1 -p1 |
---|
52 | chmod a+x configure |
---|
53 | |
---|
54 | %build |
---|
55 | %configure \ |
---|
56 | --disable-static \ |
---|
57 | --with-system-nspr \ |
---|
58 | --enable-threadsafe \ |
---|
59 | --enable-readline \ |
---|
60 | --enable-xterm-updates |
---|
61 | |
---|
62 | make %{?_smp_mflags} |
---|
63 | |
---|
64 | %install |
---|
65 | %{__rm} -rf %{buildroot} |
---|
66 | make install DESTDIR=%{buildroot} |
---|
67 | # For some reason the headers and pkg-config file are executable |
---|
68 | find %{buildroot}%{_includedir} -type f -exec chmod a-x {} \; |
---|
69 | chmod a-x %{buildroot}%{_libdir}/pkgconfig/*.pc |
---|
70 | |
---|
71 | %{__rm} -rf %{buildroot}%{_libdir}/*.a |
---|
72 | %{__rm} -rf %{buildroot}%{_libdir}/*.la |
---|
73 | |
---|
74 | |
---|
75 | %clean |
---|
76 | %{__rm} -rf %{buildroot} |
---|
77 | |
---|
78 | |
---|
79 | %post -p /sbin/ldconfig |
---|
80 | |
---|
81 | %postun -p /sbin/ldconfig |
---|
82 | |
---|
83 | |
---|
84 | %files |
---|
85 | %defattr(-,root,root,-) |
---|
86 | %doc LICENSE README |
---|
87 | %{_bindir}/js24 |
---|
88 | %{_libdir}/libmozjs-24.so |
---|
89 | |
---|
90 | %files devel |
---|
91 | %defattr(-,root,root,-) |
---|
92 | %{_bindir}/js24-config |
---|
93 | %{_includedir}/mozjs-24 |
---|
94 | %{_libdir}/pkgconfig/mozjs-24.pc |
---|
95 | |
---|
96 | %changelog |
---|
97 | * Tue Mar 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 24.2.0-2 |
---|
98 | - rebuilt with readline 6.3 |
---|
99 | - fixed License |
---|
100 | - added Japanese summary |
---|
101 | |
---|
102 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 24.2.0-1 |
---|
103 | - initial build |
---|
104 | |
---|