Accepting request 1184225 from home:gladiac
- Add support to build for Fedora OBS-URL: https://build.opensuse.org/request/show/1184225 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-pyright?expand=0&rev=11
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 1 07:37:01 UTC 2024 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Add support to build for Fedora
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 29 08:18:40 UTC 2024 - Mazin Alhaddad <mazin@getstate.dev>
|
||||
|
||||
|
||||
@@ -34,7 +34,12 @@ BuildRequires: nodejs-packaging
|
||||
BuildRequires: nodejs-devel
|
||||
BuildRequires: rsync
|
||||
BuildRequires: zstd
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: python311
|
||||
BuildRequires: python311-setuptools
|
||||
%else
|
||||
BuildRequires: python3-setuptools
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@@ -54,7 +59,11 @@ dos2unix README.md
|
||||
export PATH="$(pwd)/node_modules/.bin:$(pwd)/packages/pyright/node_modules/.bin:$PATH"
|
||||
export NODEJS_MAJOR_VERSION=$(echo %nodejs_version | sed 's/\..*//')
|
||||
|
||||
%if 0%{?suse_version}
|
||||
export npm_config_nodedir="%{_includedir}/node${NODEJS_MAJOR_VERSION}"
|
||||
%else
|
||||
export npm_config_nodedir="%{_includedir}/node"
|
||||
%endif
|
||||
export npm_config_build_from_source=true
|
||||
|
||||
export CFLAGS="%{optflags} -I${npm_config_nodedir}"
|
||||
|
||||
Reference in New Issue
Block a user