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