[nodejs] add missing macros file
T.C. Hollingsworth
patches at fedoraproject.org
Fri Dec 28 00:01:58 UTC 2012
commit 5517869d46b33ce5459bf3df85b412405f604197
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date: Thu Dec 27 17:01:35 2012 -0700
add missing macros file
macros.nodejs | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
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
More information about the scm-commits
mailing list