2 Summary: Asynchronous JavaScript Engine
8 URL: http://nodejs.org/
9 Source0: http://nodejs.org/dist/node-v%{version}.tar.gz
10 # Source0-md5: 9566bdbd05c18cc2bbe1fa0fba60dd0a
11 Patch0: %{name}-ev-multiplicity.patch
12 Patch1: %{name}-sharedlib.patch
13 Patch2: %{name}-soname.patch
14 Patch3: %{name}-libdir.patch
15 BuildRequires: c-ares-devel
16 BuildRequires: c-ares-devel >= 1.7.4
17 BuildRequires: gcc >= 5:4.0
18 BuildRequires: libeio-devel
19 BuildRequires: libev-devel >= 4.0.0
20 BuildRequires: libstdc++-devel
22 BuildRequires: rpm >= 4.4.9-56
23 BuildRequires: v8-devel >= 3.1.5
25 ExclusiveArch: %{ix86} %{x8664} arm
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Node's goal is to provide an easy way to build scalable network
30 programs. In the above example, the two second delay does not prevent
31 the server from handling new requests. Node tells the operating system
32 (through epoll, kqueue, /dev/poll, or select) that it should be
33 notified when the 2 seconds are up or if a new connection is made --
34 then it goes to sleep. If someone new connects, then it executes the
35 callback, if the timeout expires, it executes the inner callback. Each
36 connection is only a small heap allocation.
39 Summary: Development headers for nodejs
40 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
45 Development headers for nodejs.
48 %setup -q -n node-v%{version}
57 CXXFLAGS="%{rpmcxxflags}"
58 LDFLAGS="%{rpmcflags}"
59 %if "%{pld_release}" == "ac"
66 export CFLAGS LDFLAGS CXXFLAGS CC CXX
68 export PYTHONPATH=tools
79 $CC -o node -Isrc src/node_main.cc -lnode -Lbuild/default
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}/node/libraries,%{_libdir}/waf/wafadmin/Tools}
85 export PYTHONPATH=tools
87 --product-type=cshlib \
88 --destdir=$RPM_BUILD_ROOT
90 install node $RPM_BUILD_ROOT%{_bindir}/node
92 cp -a lib/*.js $RPM_BUILD_ROOT%{_libdir}/node/libraries
93 cp tools/wafadmin/Tools/node_addon.py $RPM_BUILD_ROOT%{_libdir}/waf/wafadmin/Tools
95 rm $RPM_BUILD_ROOT%{_bindir}/node-waf
97 ln -s waf $RPM_BUILD_ROOT%{_bindir}/node-waf
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog LICENSE
108 %attr(755,root,root) %{_bindir}/node
110 %attr(755,root,root) %{_libdir}/libnode.so.*.*.*
111 %dir %{_libdir}/node/libraries
112 %{_libdir}/node/libraries/*.js
113 %{_mandir}/man1/node.1*
116 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_bindir}/node-waf
119 %{_libdir}/libnode.so
120 %{_libdir}/waf/wafadmin/Tools/node_addon.py
121 %{_libdir}/pkgconfig/nodejs.pc