1 | Summary: The Mozilla library for JavaScript |
---|
2 | Name: mozjs17 |
---|
3 | Version: 17.0.0 |
---|
4 | Release: 2%{?_dist_release} |
---|
5 | # The sources are triple licensed, but when we link against readline which is |
---|
6 | # GPL, the result can only be GPL. |
---|
7 | %if 0%{?_without_readline:1} |
---|
8 | License: GPLv2+ or LGPLv2+ or MPLv1.1 |
---|
9 | %else |
---|
10 | License: GPLv2+ |
---|
11 | %endif |
---|
12 | Group: Development/Languages |
---|
13 | URL: http://www.mozilla.org/js/ |
---|
14 | Source0: http://ftp.mozilla.org/pub/mozilla.org/js/mozjs17.0.0.tar.gz |
---|
15 | |
---|
16 | Patch0: mozjs17-17.0.0-Makefile.patch |
---|
17 | |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
19 | |
---|
20 | Buildrequires: nspr-devel >= 4.7 |
---|
21 | Buildrequires: readline-devel |
---|
22 | BuildRequires: autoconf213 |
---|
23 | BuildRequires: python |
---|
24 | BuildRequires: zip |
---|
25 | |
---|
26 | Vendor: Project Vine |
---|
27 | Distribution: Vine Linux |
---|
28 | Packager: Takemikaduchi |
---|
29 | |
---|
30 | %description |
---|
31 | JavaScript is the Netscape-developed object scripting language used in millions |
---|
32 | of web pages and server applications worldwide. Netscape's JavaScript is a |
---|
33 | superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, |
---|
34 | with only mild differences from the published standard. |
---|
35 | |
---|
36 | |
---|
37 | %package devel |
---|
38 | Summary: Header files, libraries and development documentation for %{name} |
---|
39 | Group: Development/Libraries |
---|
40 | Requires: %{name} = %{version}-%{release} |
---|
41 | Requires: pkgconfig |
---|
42 | Requires: ncurses-devel readline-devel |
---|
43 | Provides: libjs-devel = %{version}-%{release} |
---|
44 | |
---|
45 | %description devel |
---|
46 | This package contains the header files, static libraries and development |
---|
47 | documentation for %{name}. If you like to develop programs using %{name}, |
---|
48 | you will need to install %{name}-devel. |
---|
49 | |
---|
50 | |
---|
51 | %prep |
---|
52 | %setup -q -n mozjs%{version} |
---|
53 | %patch0 -p1 |
---|
54 | cd js |
---|
55 | |
---|
56 | # Rm parts with spurios licenses, binaries |
---|
57 | rm -rf src/ctypes/libffi src/editline |
---|
58 | |
---|
59 | pushd src |
---|
60 | autoconf-2.13 |
---|
61 | %configure \ |
---|
62 | --with-system-nspr \ |
---|
63 | --enable-threadsafe \ |
---|
64 | %if 0%{!?_without_readline:1} |
---|
65 | --enable-readline \ |
---|
66 | %endif |
---|
67 | |
---|
68 | popd |
---|
69 | |
---|
70 | |
---|
71 | %build |
---|
72 | cd js |
---|
73 | %{__make} %{?_smp_mflags} -C src |
---|
74 | |
---|
75 | %install |
---|
76 | cd js |
---|
77 | %{__make} -C src install DESTDIR=%{buildroot} |
---|
78 | |
---|
79 | %{__rm} -rf %{buildroot}%{_libdir}/*.a |
---|
80 | %{__rm} -rf %{buildroot}%{_libdir}/*.la |
---|
81 | |
---|
82 | |
---|
83 | %clean |
---|
84 | %{__rm} -rf %{buildroot} |
---|
85 | |
---|
86 | |
---|
87 | %post -p /sbin/ldconfig |
---|
88 | |
---|
89 | %postun -p /sbin/ldconfig |
---|
90 | |
---|
91 | |
---|
92 | %files |
---|
93 | %defattr(-,root,root,-) |
---|
94 | %doc js/src/README.html |
---|
95 | %{_bindir}/js17 |
---|
96 | %{_libdir}/libmozjs-17.0.so |
---|
97 | |
---|
98 | %files devel |
---|
99 | %defattr(-,root,root,-) |
---|
100 | %{_bindir}/js17-config |
---|
101 | %{_includedir}/js-17.0 |
---|
102 | %{_libdir}/pkgconfig/mozjs-17.0.pc |
---|
103 | |
---|
104 | %changelog |
---|
105 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 17.0.0-2 |
---|
106 | - rebuild with VineSeed environment |
---|
107 | |
---|
108 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 17.0.0-1 |
---|
109 | - initial build |
---|
110 | |
---|