4 Summary: Asynchronous JavaScript Engine
10 URL: http://nodejs.org/
11 Source0: http://nodejs.org/dist/node-v%{version}.tar.gz
12 # Source0-md5: d8a75cb5c18ce20e0206ced95a8c1544
13 BuildRequires: gcc >= 5:4.0
14 BuildRequires: libeio-devel
15 BuildRequires: libev-devel >= 3.90
16 BuildRequires: libstdc++-devel
18 BuildRequires: rpm >= 4.4.9-56
19 BuildRequires: udns-devel
20 BuildRequires: c-ares-devel >= 1.7.1-0.20100523.0
21 BuildRequires: v8-devel >= 2.2.12
22 ExclusiveArch: %{ix86} %{x8664} arm
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Node's goal is to provide an easy way to build scalable network
27 programs. In the above example, the two second delay does not prevent
28 the server from handling new requests. Node tells the operating system
29 (through epoll, kqueue, /dev/poll, or select) that it should be
30 notified when the 2 seconds are up or if a new connection is made --
31 then it goes to sleep. If someone new connects, then it executes the
32 callback, if the timeout expires, it executes the inner callback. Each
33 connection is only a small heap allocation.
36 Summary: Development headers for nodejs
37 Group: Development/Libraries
40 Development headers for nodejs.
43 %setup -q -n node-v%{version}
48 CXXFLAGS="%{rpmcxxflags}"
49 LDFLAGS="%{rpmcflags}"
50 %if "%{pld_release}" == "ac"
57 export CFLAGS LDFLAGS CXXFLAGS CC CXX
59 tools/waf-light configure \
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}/node/libraries}
70 tools/waf-light install \
71 --destdir=$RPM_BUILD_ROOT
73 cp -a lib/*.js $RPM_BUILD_ROOT%{_libdir}/node/libraries
76 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
80 %doc AUTHORS ChangeLog LICENSE
81 %attr(755,root,root) %{_bindir}/node
82 %attr(755,root,root) %{_bindir}/node-repl
84 %dir %{_libdir}/node/libraries
85 %{_libdir}/node/libraries/*.js
86 %{_mandir}/man1/node.1*
89 %defattr(644,root,root,755)
90 %dir %{_includedir}/node
91 %{_includedir}/node/*.h
92 %attr(755,root,root) %{_bindir}/node-waf
93 %{_libdir}/node/wafadmin/