node/node.spec

changeset 742
36814bf43709
parent 741
c6ce86a2b636
child 743
51daf2b49ad7
equal deleted inserted replaced
0:1ee0904c16c6 1:c065da36b14d
29 Packager: OpenPKG Foundation e.V. 29 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: EVAL 31 Class: EVAL
32 Group: Web 32 Group: Web
33 License: MIT/BSD 33 License: MIT/BSD
34 Version: 0.8.11 34 Version: 0.8.12
35 Release: 20121006 35 Release: 20120800
36 36
37 # list of sources 37 # list of sources
38 Source0: http://nodejs.org/dist/v%{version}/node-v%{version}.tar.gz 38 Source0: http://nodejs.org/dist/v%{version}/node-v%{version}.tar.gz
39 Patch0: node.patch 39 Patch0: node.patch
40 40
41 # build information 41 # build information
42 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, gcc::with_cxx = yes, python 42 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, gcc::with_cxx = yes
43 PreReq: OpenPKG, openpkg >= 20100101 43 PreReq: OpenPKG, openpkg >= 20100101
44 BuildPreReq: openssl, libexecinfo, v8, zlib 44 BuildPreReq: openssl, libexecinfo, zlib, python, pkgconfig
45 PreReq: openssl, libexecinfo, v8, zlib 45 PreReq: openssl, libexecinfo, zlib
46 46
47 %description 47 %description
48 Node.js provides an easy way to build scalable network servers in 48 Node.js provides an easy way to build scalable network servers in
49 JavaScript. It is an event-driven I/O environment based on Google V8 49 JavaScript. It is an event driven I/O environment based on Google V8
50 JavaScript virtual machine. 50 JavaScript virtual machine. This particular Node JS installation uses
51 a locally provided implementation of V8 rather than depending on an
52 externally available V8 installation.
51 53
52 %track 54 %track
53 prog node = { 55 prog node = {
54 version = %{version} 56 version = %{version}
55 url = http://nodejs.org/ 57 url = http://nodejs.org/
83 %{l_prefix}/bin/python ./configure \ 85 %{l_prefix}/bin/python ./configure \
84 --prefix=%{l_prefix} \ 86 --prefix=%{l_prefix} \
85 --openssl-use-sys \ 87 --openssl-use-sys \
86 --openssl-includes=%{l_prefix}/include \ 88 --openssl-includes=%{l_prefix}/include \
87 --openssl-libpath=%{l_prefix}/lib \ 89 --openssl-libpath=%{l_prefix}/lib \
88 --shared-v8 \
89 --shared-v8-includes=%{l_prefix}/include \
90 --shared-v8-libpath=%{l_prefix}/lib \
91 --shared-v8-libname=v8 \
92 --shared-zlib \ 90 --shared-zlib \
93 --shared-zlib-includes=%{l_prefix}/include \ 91 --shared-zlib-includes=%{l_prefix}/include \
94 --shared-zlib-libpath=%{l_prefix}/lib 92 --shared-zlib-libpath=%{l_prefix}/lib \
93 --without-dtrace
95 %{l_make} %{l_mflags -O} 94 %{l_make} %{l_mflags -O}
96 95
97 %install 96 %install
98 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 97 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
99 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 98 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true

mercurial