1 Star 0 Fork 12

邓雨雨01/mozjs52

forked from src-openEuler/mozjs52
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mozjs52.spec 3.73 KB
一键复制 编辑 原始数据 按行查看 历史
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/deng-yuyu-01/mozjs52.git
git@gitee.com:deng-yuyu-01/mozjs52.git
deng-yuyu-01
mozjs52
mozjs52
master

搜索帮助