blob: a52f5704a36498ab08cd7c33f21dfbe74163ed82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
Name: nodejs
Version: 0.12.0
Release: 1
Summary: Evented I/O for V8 JavaScript
Group: System/Service
URL: http://nodejs.org/
Source: %{name}-%{version}.tar.gz
License: MIT
BuildRequires: glibc-devel
BuildRequires: openssl-devel
BuildRequires: libstdc++-devel
BuildRequires: zlib-devel
BuildRequires: python
BuildRequires: fdupes
%description
Node.js is a platform built on Chromes JavaScript runtime for easily building fast,
scalable network applications. Node.js uses an event-driven, non-blocking I/O model
that makes it lightweight and efficient, perfect for data-intensive real-time
applications that run across distributed devices.
%prep
%setup -q
%build
./configure --prefix=%{_prefix} --without-dtrace --shared-openssl --shared-zlib
make %{?_smp_mflags}
%install
%make_install
# cleanup leftover cruft
rm -fR %{buildroot}/usr/lib/dtrace
find %{buildroot}/usr/lib/node_modules -name '\.*' -delete
%fdupes %{buildroot}/usr/lib/node_modules
%docs_package
%files
%defattr(-,root,root)
%{_bindir}/node
%{_bindir}/npm
%dir /usr/lib/node_modules
%dir /usr/lib/node_modules/npm
/usr/lib/node_modules/npm/*
|