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:
parent
0e7fdd5c02
commit
e11fd2e560
@ -82,7 +82,8 @@ Conflicts: nodejs8 < 8.1.4
|
|||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
%if %{with libalternatives}
|
%if %{with libalternatives}
|
||||||
BuildRequires: libalternatives-devel
|
BuildRequires: libalternatives-devel
|
||||||
%define libalternatives_flags -DHAVE_LIBALTERNATIVES_H -lalternatives
|
%define libalternatives_cflags -DHAVE_LIBALTERNATIVES_H
|
||||||
|
%define libalternatives_lflags -lalternatives
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -126,7 +127,7 @@ the current architecture and codestream.
|
|||||||
%prep
|
%prep
|
||||||
%build
|
%build
|
||||||
cp %{S:2} .
|
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}
|
echo "Default Node version: " %{default_node_ver}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user