From 5517869d46b33ce5459bf3df85b412405f604197 Mon Sep 17 00:00:00 2001 From: "T.C. Hollingsworth" Date: Thu, 27 Dec 2012 17:01:35 -0700 Subject: [PATCH] add missing macros file --- macros.nodejs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 macros.nodejs diff --git a/macros.nodejs b/macros.nodejs new file mode 100644 index 0000000..e6a1ff3 --- /dev/null +++ b/macros.nodejs @@ -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} \ No newline at end of file