19 |
%global nodejs_major 8 |
%global nodejs_major 8 |
20 |
%global nodejs_minor 4 |
%global nodejs_minor 4 |
21 |
%global nodejs_patch 0 |
%global nodejs_patch 0 |
22 |
|
%global nodejs_rel 1 |
23 |
%global nodejs_abi %{nodejs_major}.%{nodejs_minor} |
%global nodejs_abi %{nodejs_major}.%{nodejs_minor} |
24 |
%global nodejs_version %{nodejs_major}.%{nodejs_minor}.%{nodejs_patch} |
%global nodejs_version %{nodejs_major}.%{nodejs_minor}.%{nodejs_patch} |
25 |
%global nodejs_release %mkrel 1 |
%global nodejs_release %mkrel %{nodejs_rel} |
26 |
|
|
27 |
# == Bundled Dependency Versions == |
# == Bundled Dependency Versions == |
28 |
# v8 - from deps/v8/include/v8-version.h |
# v8 - from deps/v8/include/v8-version.h |
66 |
# main package forever, we will just construct one for npm that is guaranteed |
# main package forever, we will just construct one for npm that is guaranteed |
67 |
# to increment safely. Changing this can only be done during an update when the |
# to increment safely. Changing this can only be done during an update when the |
68 |
# base npm version number is increasing. |
# base npm version number is increasing. |
69 |
%global npm_release %{nodejs_epoch}.%{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}.%{nodejs_release} |
%global npm_release %mkrel %{nodejs_epoch}.%{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}.%{nodejs_rel} |
70 |
|
|
71 |
# Filter out the NPM bundled dependencies so we aren't providing them |
# Filter out the NPM bundled dependencies so we aren't providing them |
72 |
%global __provides_exclude_from ^%{_prefix}/lib/node_modules/npm/.*$ |
%global __provides_exclude_from ^%{_prefix}/lib/node_modules/npm/.*$ |
111 |
Provides: bundled(http-parser) = %{http_parser_version} |
Provides: bundled(http-parser) = %{http_parser_version} |
112 |
%endif |
%endif |
113 |
|
|
114 |
BuildRequires: pkgconfig(openssl) |
BuildRequires: compat-openssl10-devel |
115 |
|
|
116 |
#we need ABI virtual provides where SONAMEs aren't enough/not present so deps |
#we need ABI virtual provides where SONAMEs aren't enough/not present so deps |
117 |
#break when binary compatibility is broken |
#break when binary compatibility is broken |
188 |
Summary: Node.js Package Manager |
Summary: Node.js Package Manager |
189 |
Epoch: %{npm_epoch} |
Epoch: %{npm_epoch} |
190 |
Version: %{npm_version} |
Version: %{npm_version} |
191 |
Release: %mkrel %{npm_release}.1 |
Release: %{npm_release} |
192 |
|
|
193 |
# We used to ship npm separately, but it is so tightly integrated with Node.js |
# We used to ship npm separately, but it is so tightly integrated with Node.js |
194 |
# (and expected to be present on all Node.js systems) that we ship it bundled |
# (and expected to be present on all Node.js systems) that we ship it bundled |
224 |
%setup -q -n node-v%{nodejs_version} |
%setup -q -n node-v%{nodejs_version} |
225 |
|
|
226 |
# remove bundled dependencies that we aren't building |
# remove bundled dependencies that we aren't building |
227 |
%patch1 -p1 |
%autopatch -p1 |
228 |
rm -rf deps/icu-small \ |
rm -rf deps/icu-small \ |
229 |
deps/uv \ |
deps/uv \ |
230 |
deps/zlib |
deps/zlib |