|
@@ -1,29 +1,26 @@
|
|
-Summary: The Mozilla library for JavaScript
|
|
|
|
|
|
+Summary: JavaScript interpreter and libraries
|
|
|
|
+Summary(ja): JavaScript インタプリタ及びライブラリ
|
|
Name: mozjs24
|
|
Name: mozjs24
|
|
Version: 24.2.0
|
|
Version: 24.2.0
|
|
-Release: 1%{?_dist_release}
|
|
|
|
-# The sources are triple licensed, but when we link against readline which is
|
|
|
|
-# GPL, the result can only be GPL.
|
|
|
|
-%if 0%{?_without_readline:1}
|
|
|
|
-License: GPLv2+ or LGPLv2+ or MPLv1.1
|
|
|
|
-%else
|
|
|
|
-License: GPLv2+
|
|
|
|
-%endif
|
|
|
|
|
|
+Release: 2%{?_dist_release}
|
|
|
|
+License: MPLv2.0
|
|
Group: Development/Languages
|
|
Group: Development/Languages
|
|
URL: http://www.mozilla.org/js/
|
|
URL: http://www.mozilla.org/js/
|
|
-Source0: http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-24.2.0.tar.bz2
|
|
|
|
|
|
+Source0: http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-%{version}.tar.bz2
|
|
|
|
+
|
|
|
|
+Patch0: js17-build-fixes.patch
|
|
|
|
+Patch1: mozjs24-0001-Add-AArch64-support.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
Buildrequires: nspr-devel >= 4.7
|
|
Buildrequires: nspr-devel >= 4.7
|
|
Buildrequires: readline-devel
|
|
Buildrequires: readline-devel
|
|
-BuildRequires: autoconf213
|
|
|
|
BuildRequires: python
|
|
BuildRequires: python
|
|
BuildRequires: zip
|
|
BuildRequires: zip
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
|
-Distribution: Vine Linux
|
|
|
|
-Packager: Takemikaduchi
|
|
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+Packager: Takemikaduchi
|
|
|
|
|
|
%description
|
|
%description
|
|
JavaScript is the Netscape-developed object scripting language used in millions
|
|
JavaScript is the Netscape-developed object scripting language used in millions
|
|
@@ -31,14 +28,13 @@ of web pages and server applications worldwide. Netscape's JavaScript is a
|
|
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
|
|
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
|
|
with only mild differences from the published standard.
|
|
with only mild differences from the published standard.
|
|
|
|
|
|
-
|
|
|
|
%package devel
|
|
%package devel
|
|
-Summary: Header files, libraries and development documentation for %{name}
|
|
|
|
-Group: Development/Libraries
|
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
|
|
-Requires: pkgconfig
|
|
|
|
-Requires: ncurses-devel readline-devel
|
|
|
|
-Provides: libjs-devel = %{version}-%{release}
|
|
|
|
|
|
+Summary: Header files, libraries and development documentation for %{name}
|
|
|
|
+Summary(ja): %{name} のヘッダファイル、ライブラリ及び開発用ドキュメント
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+Requires: pkgconfig
|
|
|
|
+Provides: libjs-devel = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
This package contains the header files, static libraries and development
|
|
This package contains the header files, static libraries and development
|
|
@@ -48,30 +44,29 @@ you will need to install %{name}-devel.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n mozjs-%{version}
|
|
%setup -q -n mozjs-%{version}
|
|
-cd js
|
|
|
|
-
|
|
|
|
-# Rm parts with spurios licenses, binaries
|
|
|
|
-rm -rf src/ctypes/libffi src/editline
|
|
|
|
|
|
+# Delete bundled sources
|
|
|
|
+rm js/src/editline -rf
|
|
|
|
+rm js/src/ctypes/libffi -rf
|
|
|
|
+%patch0 -p1
|
|
|
|
+%patch1 -p1
|
|
|
|
+chmod a+x configure
|
|
|
|
|
|
-pushd src
|
|
|
|
-autoconf-2.13
|
|
|
|
|
|
+%build
|
|
%configure \
|
|
%configure \
|
|
- --with-system-nspr \
|
|
|
|
- --enable-threadsafe \
|
|
|
|
-%if 0%{!?_without_readline:1}
|
|
|
|
- --enable-readline \
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
-popd
|
|
|
|
|
|
+ --disable-static \
|
|
|
|
+ --with-system-nspr \
|
|
|
|
+ --enable-threadsafe \
|
|
|
|
+ --enable-readline \
|
|
|
|
+ --enable-xterm-updates
|
|
|
|
|
|
-
|
|
|
|
-%build
|
|
|
|
-cd js
|
|
|
|
-%{__make} %{?_smp_mflags} -C src
|
|
|
|
|
|
+make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
-cd js
|
|
|
|
-%{__make} -C src install DESTDIR=%{buildroot}
|
|
|
|
|
|
+%{__rm} -rf %{buildroot}
|
|
|
|
+make install DESTDIR=%{buildroot}
|
|
|
|
+# For some reason the headers and pkg-config file are executable
|
|
|
|
+find %{buildroot}%{_includedir} -type f -exec chmod a-x {} \;
|
|
|
|
+chmod a-x %{buildroot}%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
%{__rm} -rf %{buildroot}%{_libdir}/*.a
|
|
%{__rm} -rf %{buildroot}%{_libdir}/*.a
|
|
%{__rm} -rf %{buildroot}%{_libdir}/*.la
|
|
%{__rm} -rf %{buildroot}%{_libdir}/*.la
|
|
@@ -88,7 +83,7 @@ cd js
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc js/src/README.html
|
|
|
|
|
|
+%doc LICENSE README
|
|
%{_bindir}/js24
|
|
%{_bindir}/js24
|
|
%{_libdir}/libmozjs-24.so
|
|
%{_libdir}/libmozjs-24.so
|
|
|
|
|
|
@@ -99,6 +94,11 @@ cd js
|
|
%{_libdir}/pkgconfig/mozjs-24.pc
|
|
%{_libdir}/pkgconfig/mozjs-24.pc
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Mar 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 24.2.0-2
|
|
|
|
+- rebuilt with readline 6.3
|
|
|
|
+- fixed License
|
|
|
|
+- added Japanese summary
|
|
|
|
+
|
|
* Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 24.2.0-1
|
|
* Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 24.2.0-1
|
|
- initial build
|
|
- initial build
|
|
|
|
|