|
@@ -1,5 +1,5 @@
|
|
%global system_zlib 1
|
|
%global system_zlib 1
|
|
-%global system_v8 1
|
|
|
|
|
|
+%global system_v8 0
|
|
%global system_openssl 1
|
|
%global system_openssl 1
|
|
%global system_http_parser 0
|
|
%global system_http_parser 0
|
|
%global system_cares 0
|
|
%global system_cares 0
|
|
@@ -9,9 +9,11 @@
|
|
%global system_openssl 0
|
|
%global system_openssl 0
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+%define _unpackaged_files_terminate_build 1
|
|
|
|
+
|
|
Name: nodejs
|
|
Name: nodejs
|
|
-Version: 0.10.26
|
|
|
|
-Release: 2%{?_dist_release}
|
|
|
|
|
|
+Version: 8.9.3
|
|
|
|
+Release: 1%{?_dist_release}
|
|
Summary: JavaScript runtime
|
|
Summary: JavaScript runtime
|
|
Summary(ja): JavaScript runtime
|
|
Summary(ja): JavaScript runtime
|
|
License: MIT and ASL 2.0 and ISC and BSD
|
|
License: MIT and ASL 2.0 and ISC and BSD
|
|
@@ -29,10 +31,17 @@ Source4: nodejs.req
|
|
Source5: nodejs-symlink-deps
|
|
Source5: nodejs-symlink-deps
|
|
Source6: nodejs-fixdep
|
|
Source6: nodejs-fixdep
|
|
|
|
|
|
|
|
+# https://github.com/nodejs/node/pull/17174
|
|
|
|
+# this bug will be fixed in 8.9.4.
|
|
|
|
+Patch0: 17174.patch
|
|
|
|
+# https://github.com/nodejs/node/pull/17258
|
|
|
|
+# this bug will be fixed in 8.9.4.
|
|
|
|
+Patch1: 17258.patch
|
|
|
|
+
|
|
# V8 presently breaks ABI at least every x.y release while never bumping SONAME,
|
|
# V8 presently breaks ABI at least every x.y release while never bumping SONAME,
|
|
# so we need to be more explicit until spot fixes that
|
|
# so we need to be more explicit until spot fixes that
|
|
-%global v8_ge 3.13.7.5
|
|
|
|
-%global v8_lt 3.14
|
|
|
|
|
|
+%global v8_ge 6.1.534.48
|
|
|
|
+%global v8_lt 6.2
|
|
|
|
|
|
%if %{system_v8}
|
|
%if %{system_v8}
|
|
BuildRequires: v8-devel >= %{v8_ge}
|
|
BuildRequires: v8-devel >= %{v8_ge}
|
|
@@ -113,6 +122,8 @@ The API documentation for the Node.js JavaScript runtime.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n node-v%{version}
|
|
%setup -q -n node-v%{version}
|
|
|
|
+%patch0 -p1
|
|
|
|
+%patch1 -p1
|
|
|
|
|
|
# Make sure nothing gets included from bundled deps:
|
|
# Make sure nothing gets included from bundled deps:
|
|
# We only delete the source and header files, because
|
|
# We only delete the source and header files, because
|
|
@@ -172,7 +183,8 @@ export CXXFLAGS='%{optflags} -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
|
|
%if %{system_http_parser}
|
|
%if %{system_http_parser}
|
|
--shared-http-parser \
|
|
--shared-http-parser \
|
|
%endif
|
|
%endif
|
|
- --without-dtrace
|
|
|
|
|
|
+ --without-dtrace \
|
|
|
|
+ --openssl-use-def-ca-store
|
|
|
|
|
|
# Setting BUILDTYPE=Debug builds both release and debug binaries
|
|
# Setting BUILDTYPE=Debug builds both release and debug binaries
|
|
make BUILDTYPE=Debug %{?_smp_mflags}
|
|
make BUILDTYPE=Debug %{?_smp_mflags}
|
|
@@ -180,11 +192,14 @@ make BUILDTYPE=Debug %{?_smp_mflags}
|
|
%install
|
|
%install
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
-./tools/install.py install %{buildroot}
|
|
|
|
|
|
+./tools/install.py install %{buildroot} %{_prefix}
|
|
|
|
|
|
# and remove dtrace file again
|
|
# and remove dtrace file again
|
|
rm -rf %{buildroot}/%{_prefix}/lib/dtrace
|
|
rm -rf %{buildroot}/%{_prefix}/lib/dtrace
|
|
|
|
|
|
|
|
+# remove systemtap files
|
|
|
|
+rm -rf %{buildroot}/%{_datadir}/systemtap
|
|
|
|
+
|
|
# Set the binary permissions properly
|
|
# Set the binary permissions properly
|
|
chmod 0755 %{buildroot}/%{_bindir}/node
|
|
chmod 0755 %{buildroot}/%{_bindir}/node
|
|
|
|
|
|
@@ -207,6 +222,11 @@ mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-docs-%{version}/html
|
|
cp -pr doc/* %{buildroot}%{_defaultdocdir}/%{name}-docs-%{version}/html
|
|
cp -pr doc/* %{buildroot}%{_defaultdocdir}/%{name}-docs-%{version}/html
|
|
rm -f %{_defaultdocdir}/%{name}-docs-%{version}/html/nodejs.1
|
|
rm -f %{_defaultdocdir}/%{name}-docs-%{version}/html/nodejs.1
|
|
|
|
|
|
|
|
+# move files for debug
|
|
|
|
+mkdir -p debug
|
|
|
|
+cp -pr %{buildroot}%{_docdir}/node/* debug/
|
|
|
|
+rm -rf %{buildroot}%{_docdir}/node
|
|
|
|
+
|
|
#install development headers
|
|
#install development headers
|
|
#FIXME: we probably don't really need *.h but node-gyp downloads the whole
|
|
#FIXME: we probably don't really need *.h but node-gyp downloads the whole
|
|
#freaking source tree so I can't be sure ATM
|
|
#freaking source tree so I can't be sure ATM
|
|
@@ -218,14 +238,16 @@ mkdir -p %{buildroot}%{_datadir}/node
|
|
cp -p common.gypi %{buildroot}%{_datadir}/node
|
|
cp -p common.gypi %{buildroot}%{_datadir}/node
|
|
|
|
|
|
%files
|
|
%files
|
|
-%doc ChangeLog LICENSE README.md AUTHORS
|
|
|
|
|
|
+%doc CHANGELOG.md LICENSE README.md AUTHORS
|
|
%{_bindir}/node
|
|
%{_bindir}/node
|
|
%{_bindir}/npm
|
|
%{_bindir}/npm
|
|
|
|
+%{_bindir}/npx
|
|
%{_mandir}/man1/node.*
|
|
%{_mandir}/man1/node.*
|
|
%dir %{_prefix}/lib/node_modules
|
|
%dir %{_prefix}/lib/node_modules
|
|
%{_prefix}/lib/node_modules/npm
|
|
%{_prefix}/lib/node_modules/npm
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
|
|
+%doc debug
|
|
%{_bindir}/node_g
|
|
%{_bindir}/node_g
|
|
%{_includedir}/node
|
|
%{_includedir}/node
|
|
%{_datadir}/node
|
|
%{_datadir}/node
|
|
@@ -238,6 +260,12 @@ cp -p common.gypi %{buildroot}%{_datadir}/node
|
|
%doc LICENSE
|
|
%doc LICENSE
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Dec 26 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.9.3-1
|
|
|
|
+- updated to 8.9.3.
|
|
|
|
+- built with bundled v8.
|
|
|
|
+- built with system c-ares.
|
|
|
|
+- added Patch0.
|
|
|
|
+
|
|
* Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 0.10.26-2
|
|
* Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 0.10.26-2
|
|
- rebuild with gcc-5.4.0
|
|
- rebuild with gcc-5.4.0
|
|
|
|
|