[8353] | 1 | Summary: The Mozilla library for JavaScript |
---|
| 2 | Name: mozjs24 |
---|
| 3 | Version: 24.2.0 |
---|
| 4 | Release: 1%{?_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/mozjs-24.2.0.tar.bz2 |
---|
| 15 | |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 17 | |
---|
| 18 | Buildrequires: nspr-devel >= 4.7 |
---|
| 19 | Buildrequires: readline-devel |
---|
| 20 | BuildRequires: autoconf213 |
---|
| 21 | BuildRequires: python |
---|
| 22 | BuildRequires: zip |
---|
| 23 | |
---|
| 24 | Vendor: Project Vine |
---|
| 25 | Distribution: Vine Linux |
---|
| 26 | Packager: Takemikaduchi |
---|
| 27 | |
---|
| 28 | %description |
---|
| 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. |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | %package devel |
---|
| 36 | Summary: Header files, libraries and development documentation for %{name} |
---|
| 37 | Group: Development/Libraries |
---|
| 38 | Requires: %{name} = %{version}-%{release} |
---|
| 39 | Requires: pkgconfig |
---|
| 40 | Requires: ncurses-devel readline-devel |
---|
| 41 | Provides: libjs-devel = %{version}-%{release} |
---|
| 42 | |
---|
| 43 | %description 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. |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %prep |
---|
| 50 | %setup -q -n mozjs-%{version} |
---|
| 51 | cd js |
---|
| 52 | |
---|
| 53 | # Rm parts with spurios licenses, binaries |
---|
| 54 | rm -rf src/ctypes/libffi src/editline |
---|
| 55 | |
---|
| 56 | pushd src |
---|
| 57 | autoconf-2.13 |
---|
| 58 | %configure \ |
---|
| 59 | --with-system-nspr \ |
---|
| 60 | --enable-threadsafe \ |
---|
| 61 | %if 0%{!?_without_readline:1} |
---|
| 62 | --enable-readline \ |
---|
| 63 | %endif |
---|
| 64 | |
---|
| 65 | popd |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | %build |
---|
| 69 | cd js |
---|
| 70 | %{__make} %{?_smp_mflags} -C src |
---|
| 71 | |
---|
| 72 | %install |
---|
| 73 | cd js |
---|
| 74 | %{__make} -C src install DESTDIR=%{buildroot} |
---|
| 75 | |
---|
| 76 | %{__rm} -rf %{buildroot}%{_libdir}/*.a |
---|
| 77 | %{__rm} -rf %{buildroot}%{_libdir}/*.la |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %clean |
---|
| 81 | %{__rm} -rf %{buildroot} |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | %post -p /sbin/ldconfig |
---|
| 85 | |
---|
| 86 | %postun -p /sbin/ldconfig |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | %files |
---|
| 90 | %defattr(-,root,root,-) |
---|
| 91 | %doc js/src/README.html |
---|
| 92 | %{_bindir}/js24 |
---|
| 93 | %{_libdir}/libmozjs-24.so |
---|
| 94 | |
---|
| 95 | %files devel |
---|
| 96 | %defattr(-,root,root,-) |
---|
| 97 | %{_bindir}/js24-config |
---|
| 98 | %{_includedir}/mozjs-24 |
---|
| 99 | %{_libdir}/pkgconfig/mozjs-24.pc |
---|
| 100 | |
---|
| 101 | %changelog |
---|
| 102 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 24.2.0-1 |
---|
| 103 | - initial build |
---|
| 104 | |
---|