Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2db3f19f6 |
1 changed files with 5 additions and 1 deletions
|
|
@ -1,8 +1,12 @@
|
||||||
# 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue