Fix spec file to avoid building twice
authorWonYoung Choi <wy80.choi@samsung.com>
Tue, 5 Jan 2016 05:04:45 +0000 (14:04 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Thu, 28 Apr 2016 05:40:54 +0000 (14:40 +0900)
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

packaging/nodejs.spec

index f66c6e7..ba0abab 100644 (file)
@@ -43,14 +43,14 @@ cp %{SOURCE2} .
 %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" \