add missing macros file

This commit is contained in:
T.C. Hollingsworth 2012-12-27 17:01:35 -07:00
parent 9eca3d7e00
commit 5517869d46

12
macros.nodejs Normal file
View file

@ -0,0 +1,12 @@
# nodejs binary
%__nodejs %{_bindir}/node
# nodejs library directory
%nodejs_sitelib %{_prefix}/lib/node_modules
# currently installed nodejs version
%nodejs_version %(%{__nodejs} -v | sed s/v//)
# symlink dependencies so `npm link` works
# this should be run in every module's %%install section
%nodejs_symlink_deps %{_rpmconfigdir}/nodejs_symlink_deps %{nodejs_sitelib}