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: a9e0ba08539edbdc8e5611e7550f1c47
20 Source1: http://www.crockford.com/javascript/jsmin.py.txt
21 # Source1-md5: 0521ddcf3e52457223c6e0d602486a89
22 Patch0: %{name}-system-libs.patch
23 BuildRequires: gcc >= 5:4.0
24 BuildRequires: libeio-devel
25 BuildRequires: libev-devel >= 3.90
26 BuildRequires: libstdc++-devel
28 BuildRequires: rpm >= 4.4.9-56
29 BuildRequires: udns-devel
30 BuildRequires: v8-devel
31 ExclusiveArch: %{ix86} %{x8664} arm
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Node's goal is to provide an easy way to build scalable network
36 programs. In the above example, the two second delay does not prevent
37 the server from handling new requests. Node tells the operating system
38 (through epoll, kqueue, /dev/poll, or select) that it should be
39 notified when the 2 seconds are up or if a new connection is made --
40 then it goes to sleep. If someone new connects, then it executes the
41 callback, if the timeout expires, it executes the inner callback. Each
42 connection is only a small heap allocation.
45 Summary: Development headers for nodejs
46 Group: Development/Libraries
49 Development headers for nodejs.
52 %setup -q -n node-v%{version}
55 mv deps/v8/tools/jsmin.py tools/
65 CXXFLAGS="%{rpmcxxflags}"
66 LDFLAGS="%{rpmcflags}"
67 %if "%{pld_release}" == "ac"
74 export CFLAGS LDFLAGS CXXFLAGS CC CXX
76 tools/waf-light configure \
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}}
85 tools/waf-light install \
86 --destdir=$RPM_BUILD_ROOT
89 rm -rf $RPM_BUILD_ROOT
92 %defattr(644,root,root,755)
93 %doc AUTHORS ChangeLog LICENSE
94 %attr(755,root,root) %{_bindir}/node
95 %attr(755,root,root) %{_bindir}/node-repl
97 %dir %{_libdir}/node/libraries
98 %{_libdir}/node/libraries/*.js
99 %{_mandir}/man1/node.1*
102 %defattr(644,root,root,755)
103 %dir %{_includedir}/node
104 %{_includedir}/node/config.h
105 %{_includedir}/node/evcom.h
106 %{_includedir}/node/node.h
107 %{_includedir}/node/node_events.h
108 %{_includedir}/node/node_net.h
109 %{_includedir}/node/node_object_wrap.h
110 %{_includedir}/node/node_version.h