4 # For the 1.2 branch, we use 0s here
5 # For 1.3+, we use the three digit versions
9 %define sover %{somajor}.%{sominor}.%{sobuild}
11 Summary: Asynchronous JavaScript Engine
17 URL: http://nodejs.org/
18 Source0: http://nodejs.org/dist/node-v%{version}.tar.gz
19 # Source0-md5: 4e80b775f9417cc8305fdec34646d8fb
20 BuildRequires: gcc >= 5:4.0
21 BuildRequires: libeio-devel
22 BuildRequires: libev-devel >= 3.90
23 BuildRequires: libstdc++-devel
25 BuildRequires: rpm >= 4.4.9-56
26 BuildRequires: udns-devel
27 BuildRequires: c-ares-devel >= 1.7.1-0.20100523.0
28 BuildRequires: v8-devel >= 2.2.12
29 ExclusiveArch: %{ix86} %{x8664} arm
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Node's goal is to provide an easy way to build scalable network
34 programs. In the above example, the two second delay does not prevent
35 the server from handling new requests. Node tells the operating system
36 (through epoll, kqueue, /dev/poll, or select) that it should be
37 notified when the 2 seconds are up or if a new connection is made --
38 then it goes to sleep. If someone new connects, then it executes the
39 callback, if the timeout expires, it executes the inner callback. Each
40 connection is only a small heap allocation.
43 Summary: Development headers for nodejs
44 Group: Development/Libraries
47 Development headers for nodejs.
50 %setup -q -n node-v%{version}
55 CXXFLAGS="%{rpmcxxflags}"
56 LDFLAGS="%{rpmcflags}"
57 %if "%{pld_release}" == "ac"
64 export CFLAGS LDFLAGS CXXFLAGS CC CXX
66 tools/waf-light configure \
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}/node/libraries}
75 tools/waf-light install \
76 --destdir=$RPM_BUILD_ROOT
78 cp -a lib/*.js $RPM_BUILD_ROOT%{_libdir}/node/libraries
81 rm -rf $RPM_BUILD_ROOT
84 %defattr(644,root,root,755)
85 %doc AUTHORS ChangeLog LICENSE
86 %attr(755,root,root) %{_bindir}/node
87 %attr(755,root,root) %{_bindir}/node-repl
89 %dir %{_libdir}/node/libraries
90 %{_libdir}/node/libraries/*.js
91 %{_mandir}/man1/node.1*
94 %defattr(644,root,root,755)
95 %dir %{_includedir}/node
96 %{_includedir}/node/*.h
97 %attr(755,root,root) %{_bindir}/node-waf
98 %{_libdir}/node/wafadmin/