The Makefile of nodejs is using phony target name for node executable.
Therefore when 'make install' is executed, the target for making the
node executable is started again.
Change-Id: Ia4b4358820bdacc693155b3f09e780e664ba1c0b
%build
./configure --prefix=%{_prefix} \
+ --without-snapshot \
--without-dtrace \
--shared-zlib \
--shared-openssl
-make %{?_smp_mflags}
-
%install
-%make_install
+# run make install without previous make to avoid building twice
+make %{?_smp_mflags} install DESTDIR=%{buildroot}
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
sed -e "s#@prefix@#%{_prefix}#g" \