[7938] | 1 | Summary: The Mozilla library for JavaScript |
---|
| 2 | Name: mozjs17 |
---|
| 3 | Version: 17.0.0 |
---|
[10460] | 4 | Release: 4%{?_dist_release} |
---|
[7938] | 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 |
---|
[10460] | 22 | Buildrequires: zlib-devel |
---|
[7938] | 23 | BuildRequires: autoconf213 |
---|
| 24 | BuildRequires: python |
---|
| 25 | BuildRequires: zip |
---|
| 26 | |
---|
| 27 | Vendor: Project Vine |
---|
| 28 | Distribution: Vine Linux |
---|
[8119] | 29 | Packager: Takemikaduchi |
---|
[7938] | 30 | |
---|
| 31 | %description |
---|
| 32 | JavaScript is the Netscape-developed object scripting language used in millions |
---|
| 33 | of web pages and server applications worldwide. Netscape's JavaScript is a |
---|
| 34 | superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, |
---|
| 35 | with only mild differences from the published standard. |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | %package devel |
---|
| 39 | Summary: Header files, libraries and development documentation for %{name} |
---|
| 40 | Group: Development/Libraries |
---|
| 41 | Requires: %{name} = %{version}-%{release} |
---|
| 42 | Requires: pkgconfig |
---|
| 43 | Requires: ncurses-devel readline-devel |
---|
| 44 | Provides: libjs-devel = %{version}-%{release} |
---|
| 45 | |
---|
| 46 | %description devel |
---|
| 47 | This package contains the header files, static libraries and development |
---|
| 48 | documentation for %{name}. If you like to develop programs using %{name}, |
---|
| 49 | you will need to install %{name}-devel. |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | %prep |
---|
| 53 | %setup -q -n mozjs%{version} |
---|
| 54 | %patch0 -p1 |
---|
| 55 | cd js |
---|
| 56 | |
---|
| 57 | # Rm parts with spurios licenses, binaries |
---|
| 58 | rm -rf src/ctypes/libffi src/editline |
---|
| 59 | |
---|
| 60 | pushd src |
---|
| 61 | autoconf-2.13 |
---|
| 62 | %configure \ |
---|
| 63 | --with-system-nspr \ |
---|
| 64 | --enable-threadsafe \ |
---|
| 65 | %if 0%{!?_without_readline:1} |
---|
| 66 | --enable-readline \ |
---|
| 67 | %endif |
---|
| 68 | |
---|
| 69 | popd |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | %build |
---|
| 73 | cd js |
---|
| 74 | %{__make} %{?_smp_mflags} -C src |
---|
| 75 | |
---|
| 76 | %install |
---|
| 77 | cd js |
---|
| 78 | %{__make} -C src install DESTDIR=%{buildroot} |
---|
| 79 | |
---|
| 80 | %{__rm} -rf %{buildroot}%{_libdir}/*.a |
---|
| 81 | %{__rm} -rf %{buildroot}%{_libdir}/*.la |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | %clean |
---|
| 85 | %{__rm} -rf %{buildroot} |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | %post -p /sbin/ldconfig |
---|
| 89 | |
---|
| 90 | %postun -p /sbin/ldconfig |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | %files |
---|
| 94 | %defattr(-,root,root,-) |
---|
| 95 | %doc js/src/README.html |
---|
| 96 | %{_bindir}/js17 |
---|
| 97 | %{_libdir}/libmozjs-17.0.so |
---|
| 98 | |
---|
| 99 | %files devel |
---|
| 100 | %defattr(-,root,root,-) |
---|
| 101 | %{_bindir}/js17-config |
---|
| 102 | %{_includedir}/js-17.0 |
---|
| 103 | %{_libdir}/pkgconfig/mozjs-17.0.pc |
---|
| 104 | |
---|
| 105 | %changelog |
---|
[10460] | 106 | * Thu Jun 30 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 17.0.0-4 |
---|
| 107 | - rebuild with gcc-5.4.0 |
---|
| 108 | - add Buildrequires: zlib-devel |
---|
| 109 | |
---|
[9686] | 110 | * Sun Aug 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 17.0.0-3 |
---|
| 111 | - rebuild with readline-6.3 |
---|
| 112 | |
---|
[8119] | 113 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 17.0.0-2 |
---|
| 114 | - rebuild with VineSeed environment |
---|
| 115 | |
---|
[7938] | 116 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 17.0.0-1 |
---|
| 117 | - initial build |
---|
| 118 | |
---|