clean:
-rm -rf out/Makefile node node_g out/$(BUILDTYPE)/node blog.html email.md
+--- node-v0.10.3/common.gypi~ 2013-04-03 20:30:57.000000000 +0300
++++ node-v0.10.3/common.gypi 2013-04-08 15:50:00.327121152 +0300
+@@ -8,6 +8,8 @@
+ 'component%': 'static_library', # NB. these names match with what V8 expects
+ 'msvs_multi_core_compile': '0', # we do enable multicore compiles, but not using the V8 way
+ 'gcc_version%': 'unknown',
++ # For a shared library build, results in "libnode.so.<(soname_version)".
++ 'soname_version%': '',
+ 'clang%': 0,
+ 'python%': 'python',
+
--- node-v0.10.3-o/node.gyp 2013-04-03 11:30:57.000000000 -0600
+++ node-v0.10.3/node.gyp 2013-04-03 19:30:22.000000000 -0600
@@ -67,17 +67,35 @@
+ {
+ 'target_name': 'libnode',
+ 'type': 'shared_library',
-+ 'product_extension': 'so.10',
-+ 'soname_version': '10',
++ 'product_extension': 'so.<(soname_version)',
++ 'soname_version': '<(soname_version)',
+ 'cflags': ['-fPIC'],
+
+ 'sources': [
ExclusiveArch: %{ix86} %{x8664} arm
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define sover %(echo %{version} | cut -d. -f2)
+
%description
Node.js is a platform built on Chrome's JavaScript runtime for easily
building fast, scalable network applications. Node.js uses an
# NOT autoconf so don't use macro
PYTHONPATH=tools \
+GYP_DEFINES="soname_version=%{sover}" \
./configure \
--shared-v8 \
--shared-zlib \