- Use libalternatives on TW by default

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-common?expand=0&rev=44
This commit is contained in:
Adam Majer 2021-06-10 10:30:57 +00:00 committed by Git OBS Bridge
parent d6cf24e474
commit 316795e835
3 changed files with 10 additions and 1 deletions

2
node.c
View File

@ -70,7 +70,7 @@ int main(int argc, char *argv[])
// if we want default version and not using update-alternatives
if (version == default_version)
{
return execDefault(argv);
return libalts_exec_default(argv);
}
#endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 10 10:27:58 UTC 2021 - Adam Majer <adam.majer@suse.de>
- Use libalternatives on TW by default
-------------------------------------------------------------------
Mon May 31 16:32:18 UTC 2021 - Adam Majer <adam.majer@suse.de>

View File

@ -28,7 +28,11 @@
%define NODEJS_LTS 16
%define NODEJS_CURRENT 16
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
# SLE-12 variants
%if 0%{?suse_version} < 1500