forked from pool/nodejs-common
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-common?expand=0&rev=42
This commit is contained in:
@@ -82,7 +82,8 @@ Conflicts: nodejs8 < 8.1.4
|
||||
BuildRequires: gcc
|
||||
%if %{with libalternatives}
|
||||
BuildRequires: libalternatives-devel
|
||||
%define libalternatives_flags -DHAVE_LIBALTERNATIVES_H -lalternatives
|
||||
%define libalternatives_cflags -DHAVE_LIBALTERNATIVES_H
|
||||
%define libalternatives_lflags -lalternatives
|
||||
%endif
|
||||
|
||||
%description
|
||||
@@ -126,7 +127,7 @@ the current architecture and codestream.
|
||||
%prep
|
||||
%build
|
||||
cp %{S:2} .
|
||||
gcc ${RPM_OPT_FLAGS} %?libalternatives_flags -o node %{S:1}
|
||||
gcc ${RPM_OPT_FLAGS} %?libalternatives_cflags -o node %{S:1} %?libalternatives_lflags
|
||||
|
||||
echo "Default Node version: " %{default_node_ver}
|
||||
|
||||
|
Reference in New Issue
Block a user