#% global hgdate 51702867d932 Summary: JavaScript interpreter and libraries Name: js Epoch: 1 Version: 1.8.5 Release: 20%{?hgdate:.hg%{hgdate}}%{?dist} License: GPLv2+ or LGPLv2+ or MPLv1.1 Group: Development/Languages URL: http://www.mozilla.org/js/ Source0: http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz Patch0: js-1.8.5-64bit-big-endian.patch Patch1: js-1.8.5-secondary-jit.patch Patch2: js185-destdir.patch Patch3: js-1.8.5-537701.patch Patch4: js185-arm-nosoftfp.patch Patch5: js185-libedit.patch Patch7: 0001-Make-js-config.h-multiarch-compatible.patch Patch8: ppc64le.patch Patch9: bz1027492-aarch64.patch Patch10: mozjs1.8.5-tag.patch Provides: libjs = %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Buildrequires: nspr-devel >= 4.7 BuildRequires: python BuildRequires: zip Buildrequires: libedit-devel BuildRequires: ncurses-devel BuildRequires: autoconf213 %description JavaScript is the Netscape-developed object scripting language used in millions of web pages and server applications worldwide. Netscape's JavaScript is a superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, with only mild differences from the published standard. %package devel Summary: Header files, libraries and development documentation for %{name} Group: Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} Requires: pkgconfig Requires: ncurses-devel readline-devel Provides: libjs-devel = %{version}-%{release} %description devel This package contains the header files, static libraries and development documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %prep %setup -q -n %{name}-%{version} %patch0 -p2 -b .64bit-big-endian %patch1 -p2 -b .secondary-jit %patch2 -p0 -b .destdir %patch3 -p1 -b .537701 %patch4 -p1 -b .armhfp %patch5 -p1 -b .libedit %patch7 -p1 -b .multilib %patch8 -p1 -b .ppc64le %patch9 -p1 -b .aarch64 %patch10 -p1 -b .tag cd js # Rm parts with spurios licenses, binaries # Some parts under BSD (but different suppliers): src/assembler #rm -rf src/assembler src/yarr/yarr src/yarr/pcre src/yarr/wtf src/v8-dtoa rm -rf src/ctypes/libffi src/t src/tests/src/jstests.jar src/tracevis src/v8 pushd src autoconf-2.13 popd # Create pkgconfig file cat > libjs.pc << 'EOF' prefix=%{_prefix} exec_prefix=%{_prefix} libdir=%{_libdir} includedir=%{_includedir} Name: libjs Description: JS library Requires: nspr >= 4.7 Version: %{version} Libs: -L${libdir} -ljs Cflags: -DXP_UNIX=1 -DJS_THREADSAFE=1 -I${includedir}/js EOF %build cd js/src CPPFLAGS="$(pkg-config --cflags libedit)" \ %configure \ --with-system-nspr \ --enable-threadsafe \ --enable-readline make %{?_smp_mflags} %install cd js make -C src install DESTDIR=%{buildroot} # We don't want this rm -f %{buildroot}%{_bindir}/js-config install -m 0755 src/jscpucfg src/shell/js \ %{buildroot}%{_bindir}/ rm -rf %{buildroot}%{_libdir}/*.a rm -rf %{buildroot}%{_libdir}/*.la # For compatibility # XXX do we really need libjs?!?!?! pushd %{buildroot}%{_libdir} ln -s libmozjs185.so.1.0 libmozjs.so.1 ln -s libmozjs185.so.1.0 libjs.so.1 ln -s libmozjs185.so libmozjs.so ln -s libmozjs185.so libjs.so popd install -m 0644 libjs.pc %{buildroot}%{_libdir}/pkgconfig/ %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc js/src/README.html %{_bindir}/js %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %{_bindir}/jscpucfg %{_libdir}/pkgconfig/*.pc %{_libdir}/*.so %{_includedir}/js %changelog * Thu Apr 06 2017 Yaakov Selkowitz - 1:1.8.5-20 - Fix for 48-bit VA on aarch64 - Resolves: #1423015 * Tue Aug 26 2014 Yaakov Selkowitz - 1:1.8.5-19 - Rebase aarch64 patch - Resolves: #1134124 * Tue Aug 16 2014 Colin Walters - 1:1.8.5-18 - Backport ppc64le patch (Aldy Hernandez ) - Resolves: #1125725 * Mon Mar 17 2014 Colin Walters - 1:1.8.5-17 - Fix multiarch conflicts in js-config.h - Resolves: #1076416 * Fri Jan 24 2014 Daniel Mach - 1:1.8.5-16 - Mass rebuild 2014-01-24 * Fri Dec 27 2013 Daniel Mach - 1:1.8.5-15 - Mass rebuild 2013-12-27 * Wed Nov 06 2013 Colin Walters - 1:1.8.5-14 - Patch to build on aarch64 Resolves: #1027493 * Thu Feb 14 2013 Fedora Release Engineering - 1:1.8.5-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jan 18 2013 Dennis Gilmore - 1:1.8.5-12 - make sure -march=armv7-a is not hardcoded in arm builds * Sat Nov 17 2012 Pavel Alexeev - 1:1.8.5-11 - Thanks to Ville Skyttä (bz#875343) build against libedit instead of readline what simplify licensing apparently without any loss of functionality * Thu Jul 19 2012 Fedora Release Engineering - 1:1.8.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jan 10 2012 Dennis Gilmore - 1.8.5-9 - add patch to enable js to build on both hard and soft floating point arm distros * Fri Dec 02 2011 Karsten Hopp 1.8.5-8 - add patch from bugzilla 749604, fixes PPC failures * Wed Jun 22 2011 Colin Walters - 1:1.8.5-6 - Include mozjs185.pc, clean up build - Based on work from Christopher Aillon - Switch to using make install DESTDIR=, instead of hardcoding build rules. - Add DESTDIR= patch from GNOME 3.2 jhbuild - Make mozjs185 the canonical target for both libmozjs and libmozjs185. * Fri May 27 2011 Dan Horák - 1.8.5-5 - add secondary arch patches from xulrunner * Tue Apr 12 2011 Christopher Aillon - 1.8.5-4 - devel subpackage needs to ask for the newly added epoch * Tue Apr 12 2011 Pavel Alexeev - 1.8.5-3 - Add Epoch: 1 to allow update of 1.70-13 version. * Sat Apr 9 2011 Pavel Alexeev - 1.8.5-2 - Correct symlink to provide backward capabiliies libjs.so.1 * Wed Apr 6 2011 Pavel Alexeev - 1.8.5-1 - Update to release. - Remove unneeded anymore patches. - Add backward capability symlink. * Sat Feb 12 2011 Pavel Alexeev - 1.8.5-0.hg51702867d932 - Build version 1.8.5 by update request - BZ#676441 from Firefox 4.0 mercurial repository. - Gone -DJS_C_STRINGS_ARE_UTF8 - Add BR autoconf213, change build system to use configure. - Adopt patch0 (js-1.7.0-make.patch -> js-1.8.5-make.patch) - Adopt patch1 (js-shlib.patch -> js-1.8.5-shlib.patch) - Remove Patch2 (js-1.5-va_copy.patch) and Patch3 (js-ldflags.patch) - Add BR python, zip. * Wed Feb 09 2011 Fedora Release Engineering - 1.70-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Jun 16 2010 Pavel Alexeev - 1.70-12 - Add UTF-8 support (add -DJS_C_STRINGS_ARE_UTF8 ) by request Peter Halliday: BZ#576585 * Mon Jun 14 2010 Dan Horák - 1.70-11 - updated the va_copy patch for s390 * Mon Jan 25 2010 Pavel Alexeev - 1.70-10 - Remove static library from -devel - %%{_libdir}/*.a (bz#556057) to meet guidelines. * Sun Aug 2 2009 Pavel Alexeev - 1.70-8 - Reformat spec with tabs. - By report of Thomas Sondergaard (BZ#511162) Add -DXP_UNIX=1 -DJS_THREADSAFE=1 flags and nspr requires into libjs.pc * Fri Jul 24 2009 Fedora Release Engineering - 1.70-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri May 29 2009 Dan Horak 1.70-6 - update the va_copy patch for s390x * Thu Apr 9 2009 Matthias Saou 1.70-5 - Update description (#487903). * Wed Feb 25 2009 Fedora Release Engineering - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Jun 4 2008 Jon McCann - 1.70-3 - Add two missing files (#449715) * Wed Feb 27 2008 Tom "spot" Callaway - 1.70-2 - Rebuild for perl 5.10 (again) * Sun Feb 3 2008 Matthias Saou 1.70-1 - Update to 1.7.0, as 1.70 to avoid introducing an epoch for now... - Remove no longer provided perlconnect parts. * Thu Jan 24 2008 Tom "spot" Callaway 1.60-6 - BR: perl(ExtUtils::Embed) * Sun Jan 20 2008 Tom "spot" Callaway 1.60-5 - rebuild for new perl * Wed Aug 22 2007 Matthias Saou 1.60-4 - Rebuild for new BuildID feature. * Mon Aug 6 2007 Matthias Saou 1.60-3 - Update License field. - Add perl(ExtUtils::MakeMaker) build requirement to pull in perl-devel. * Fri Feb 2 2007 Matthias Saou 1.60-2 - Include jsopcode.tbl and js.msg in devel (#235481). - Install static lib mode 644 instead of 755. * Fri Feb 2 2007 Matthias Saou 1.60-1 - Update to 1.60. - Rebuild in order to link against ncurses instead of termcap (#226773). - Add ncurses-devel build requirement and patch s/termcap/ncurses/ in. - Change mode of perl library from 555 to 755 (#224603). * Mon Aug 28 2006 Matthias Saou 1.5-6 - Fix pkgconfig file (#204232 & dupe #204236). * Mon Jul 24 2006 Matthias Saou 1.5-5 - FC6 rebuild. - Enable JS_THREADSAFE in the build (#199696), add patch and nspr build req. * Mon Mar 6 2006 Matthias Saou 1.5-4 - FC5 rebuild. * Thu Feb 9 2006 Matthias Saou 1.5-3 - Rebuild for new gcc/glibc. * Mon Jan 30 2006 Matthias Saou 1.5-2 - Fix .pc file. * Thu Jan 26 2006 Matthias Saou 1.5-1 - Update to 1.5.0 final. - Spec file cleanups. - Move docs from devel to main, since we need the license there. - Remove no longer needed js-perlconnect.patch. - Update js-1.5-va_copy.patch. - Include a pkgconfig file (#178993). * Tue Apr 19 2005 Ville Skyttä - 1.5-0.rc6a.6 - Link shared lib with libperl. * Fri Apr 7 2005 Michael Schwendt - rebuilt * Mon Feb 14 2005 David Woodhouse - 1.5-0.rc6a.4 - Take js-va_copy.patch out of %%ifarch x86_64 so it fixes the PPC build too * Sun Feb 13 2005 Thorsten Leemhuis - 1.5-0.rc6a.3 - Add js-va_copy.patch to fix x86_64; Patch was found in a Mandrake srpm * Sat Dec 11 2004 Ville Skyttä - 1.5-0.rc6a.2 - Include perlconnect. - Include readline support, rebuild using "--without readline" to disable. - Add libjs* provides for upstream compatibility. - Install header files in %%{_includedir} instead of %%{_includedir}/js. * Tue Jun 15 2004 Matthias Saou 1.5-0.rc6a - Update to 1.5rc6a. * Tue Mar 02 2004 Dag Wieers - 1.5-0.rc6 - Initial package. (using DAR)