summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Lynch <rusty.lynch@intel.com>2013-07-11 16:21:57 -0700
committerRusty Lynch <rusty.lynch@intel.com>2013-07-12 15:15:55 -0700
commitae108fbf071489b3635f7c9e612bfc2577051576 (patch)
treeacfb74bf40df8a49563c9349ffe446e4478b17fe
parente32660a984427d46af6a144983cf7b8045b7299c (diff)
downloadnodejs-accepted/tizen_ivi_release.tar.gz
nodejs-accepted/tizen_ivi_release.tar.bz2
nodejs-accepted/tizen_ivi_release.zip
Change-Id: I2512567fe6acf71ab165a0e17a9264ba2725e4b6
-rw-r--r--packaging/nodejs.changes3
-rw-r--r--packaging/nodejs.spec47
2 files changed, 50 insertions, 0 deletions
diff --git a/packaging/nodejs.changes b/packaging/nodejs.changes
new file mode 100644
index 000000000..7d2607250
--- /dev/null
+++ b/packaging/nodejs.changes
@@ -0,0 +1,3 @@
+* Thu Jul 11 2013 Rusty Lynch <rusty.lynch@intel.com> v0.10.13@06bcd7f
+- Initial Tizen packaging
+
diff --git a/packaging/nodejs.spec b/packaging/nodejs.spec
new file mode 100644
index 000000000..8e3bee625
--- /dev/null
+++ b/packaging/nodejs.spec
@@ -0,0 +1,47 @@
+Name: nodejs
+Version: 0.10.13
+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
+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/*