2 Summary: Asynchronous JavaScript Engine
8 URL: http://nodejs.org/
9 Source0: http://nodejs.org/dist/node-v%{version}.tar.gz
10 # Source0-md5: 93279f1e4595558dacb45a78259b7739
11 BuildRequires: c-ares-devel >= 1.7.1-0.20100523.0
12 BuildRequires: gcc >= 5:4.0
13 BuildRequires: libeio-devel
14 BuildRequires: libev-devel >= 3.90
15 BuildRequires: libstdc++-devel
17 BuildRequires: rpm >= 4.4.9-56
18 BuildRequires: udns-devel
19 BuildRequires: v8-devel >= 2.3.2
21 ExclusiveArch: %{ix86} %{x8664} arm
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Node's goal is to provide an easy way to build scalable network
26 programs. In the above example, the two second delay does not prevent
27 the server from handling new requests. Node tells the operating system
28 (through epoll, kqueue, /dev/poll, or select) that it should be
29 notified when the 2 seconds are up or if a new connection is made --
30 then it goes to sleep. If someone new connects, then it executes the
31 callback, if the timeout expires, it executes the inner callback. Each
32 connection is only a small heap allocation.
35 Summary: Development headers for nodejs
36 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 export PYTHONPATH=tools
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}/node/libraries,%{_libdir}/waf/wafadmin/Tools}
72 export PYTHONPATH=tools
74 --destdir=$RPM_BUILD_ROOT
76 cp -a lib/*.js $RPM_BUILD_ROOT%{_libdir}/node/libraries
77 cp tools/wafadmin/Tools/node_addon.py $RPM_BUILD_ROOT%{_libdir}/waf/wafadmin/Tools
79 rm $RPM_BUILD_ROOT%{_bindir}/node-waf
81 ln -s waf $RPM_BUILD_ROOT%{_bindir}/node-waf
84 rm -rf $RPM_BUILD_ROOT
87 %defattr(644,root,root,755)
88 %doc AUTHORS ChangeLog LICENSE
89 %attr(755,root,root) %{_bindir}/node
90 %attr(755,root,root) %{_bindir}/node-repl
92 %dir %{_libdir}/node/libraries
93 %{_libdir}/node/libraries/*.js
94 %{_mandir}/man1/node.1*
97 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/node-waf
100 %{_libdir}/waf/wafadmin/Tools/node_addon.py