代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/mozjs52 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: mozjs52
Version: 52.9.0
Release: 7
Summary: JavaScript interpreter and libraries
License: MPLv2.0 and MPLv1.1 and BSD and GPLv2+ and GPLv3+ and LGPLv2.1 and LGPLv2.1+ and AFL and ASL 2.0
URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/52
Source0: https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.xz
# Patches are from Debian
Patch0001: fix-soname.patch
Patch0002: copy-headers.patch
Patch0003: tests-increase-timeout.patch
Patch0004: tests-snans-be.patch
#patch are from Redhat
Patch0010: disable-extra-threads.patch
# Patches are from github
Patch0101: disable-mozglue.patch
Patch0104: include-configure-script.patch
# Patches are from Fedora
Patch19: xulrunner-24.0-s390-inlines.patch
BuildRequires: autoconf213 gcc gcc-c++ perl-devel libffi-devel zlib-devel
BuildRequires: python2-devel readline-devel zip patch
Provides: bundled(jemalloc) = 4.3.1
%description
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.
%package devel
Summary: Development files and Header files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package_help
%prep
%autosetup -n firefox-%{version}esr -p1
rm -rf security/
rm -rf modules/zlib
%build
pushd js/src
export CFLAGS="%{optflags} -fno-tree-vrp -fno-strict-aliasing -fno-delete-null-pointer-checks"
export CXXFLAGS="$CFLAGS"
export LINKFLAGS="%{?__global_ldflags}"
export PYTHON="%{__python2}"
autoconf-2.13
%configure --without-system-icu --enable-posix-nspr-emulation --with-system-zlib \
--disable-tests --disable-strip --with-intl-api --enable-readline \
--enable-shared-js --disable-optimize --enable-pie \
%ifarch %{arm} aarch64
--disable-ion
%endif
%make_build
popd
%install
pushd js/src
%make_install
mkdir -p %{buildroot}%{_docdir}
install -m 644 README.html %{buildroot}%{_docdir}/
chmod -x %{buildroot}%{_libdir}/pkgconfig/*.pc
mv %{buildroot}%{_libdir}/libmozjs-52.so %{buildroot}%{_libdir}/libmozjs-52.so.0.0.0
ln -s libmozjs-52.so.0.0.0 %{buildroot}%{_libdir}/libmozjs-52.so.0
ln -s libmozjs-52.so.0 %{buildroot}%{_libdir}/libmozjs-52.so
popd
%check
pushd js/src
%{__python2} tests/jstests.py -d -s -t 1800 --no-progress ../../js/src/js/src/shell/js;
%{__python2} jit-test/jit_test.py -s -t 1800 --no-progress ../../js/src/js/src/shell/js basic;
%ldconfig_scriptlets
popd
%files
%license LICENSE
%{_libdir}/libmozjs-52.so*
%files devel
%{_bindir}/js52
%{_includedir}/mozjs-52/*
%{_libdir}/pkgconfig/mozjs-52.pc
%{_libdir}/libmozjs-52.so
%exclude %{_libdir}/libjs_static.ajs
%exclude %{_bindir}/js52-config
%files help
%{_docdir}/README.html
%changelog
* Mon Jun 29 2020 chengzihan <chengzihan2@huawei.com> - 52.9.0-7
- remove BuildRequires: python2-virtualenv
* Tue Jun 9 2020 zhujunhao <zhujunhao8@huawei.com> - 52.9.0-6
- fix build failed
* Fri Jan 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 52.9.0-5
- remove patch related to ppc
* Fri Nov 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 52.9.0-4
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:bugfix about the makefile in x86_64
* Thu Oct 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 52.9.0-3
- Type:bugfix
- Id:NA
- SUG:NA
- DESC: Add a new subpackage of help
* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 52.9.0-2
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。