Set correct %nodejs_sitelib path
Resolves: rhbz#2177117 Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
parent
0cd3fed400
commit
1998d72b1a
@ -1,16 +1,17 @@
|
|||||||
# nodejs binary
|
# nodejs binary
|
||||||
%__nodejs %{_bindir}/node
|
%__nodejs %{_bindir}/node
|
||||||
|
|
||||||
|
# currently installed nodejs version
|
||||||
|
%nodejs_version %(%{__nodejs} -v | sed s/v//)
|
||||||
|
%_nodejs_major_version %(echo %{nodejs_version} | sed 's#^\\([0-9]\\+\\).*#\\1#')
|
||||||
|
|
||||||
# nodejs library directory
|
# nodejs library directory
|
||||||
%nodejs_sitelib %{_prefix}/lib/node_modules
|
%nodejs_sitelib %{_prefix}/lib/node_modules_%{_nodejs_major_version}
|
||||||
|
|
||||||
#arch specific library directory
|
#arch specific library directory
|
||||||
#for future-proofing only; we don't do multilib
|
#for future-proofing only; we don't do multilib
|
||||||
%nodejs_sitearch %{nodejs_sitelib}
|
%nodejs_sitearch %{nodejs_sitelib}
|
||||||
|
|
||||||
# currently installed nodejs version
|
|
||||||
%nodejs_version %(%{__nodejs} -v | sed s/v//)
|
|
||||||
|
|
||||||
# symlink dependencies so `npm link` works
|
# symlink dependencies so `npm link` works
|
||||||
# this should be run in every module's %%install section
|
# this should be run in every module's %%install section
|
||||||
# pass --check to work in the current directory instead of the buildroot
|
# pass --check to work in the current directory instead of the buildroot
|
||||||
@ -25,7 +26,7 @@
|
|||||||
%nodejs_fixdep %{_rpmconfigdir}/nodejs-fixdep
|
%nodejs_fixdep %{_rpmconfigdir}/nodejs-fixdep
|
||||||
|
|
||||||
# patch package.json to set the package version
|
# patch package.json to set the package version
|
||||||
# e.g. `%%nodejs_setversion 1.2.3`
|
# e.g. `%%nodejs_setversion 1.2.3`
|
||||||
%nodejs_setversion %{_rpmconfigdir}/nodejs-setversion
|
%nodejs_setversion %{_rpmconfigdir}/nodejs-setversion
|
||||||
|
|
||||||
# macro to filter unwanted provides from Node.js binary native modules
|
# macro to filter unwanted provides from Node.js binary native modules
|
||||||
|
Loading…
Reference in New Issue
Block a user