[packages/nodejs] export node module api version
glen
glen at pld-linux.org
Sat Oct 17 23:12:28 CEST 2015
commit 56d9fb33882faca58e3bf6c8f4ee0bfa0c602f72
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Oct 18 00:11:36 2015 +0300
export node module api version
nodejs.spec | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/nodejs.spec b/nodejs.spec
index e5fcd8b..75b335c 100644
--- a/nodejs.spec
+++ b/nodejs.spec
@@ -7,6 +7,8 @@
# NOTES:
# - https://nodejs.org/en/download/releases/
+# see "Modules" column in https://nodejs.org/en/download/releases/
+%define node_module_version 11
Summary: Asynchronous JavaScript Engine
Name: nodejs
Version: 0.10.40
@@ -44,6 +46,7 @@ BuildRequires: sed >= 4.0
%{?with_system_v8:BuildRequires: v8-devel >= 3.15.11.18-2}
BuildRequires: zlib-devel
Requires: ca-certificates
+Provides: nodejs(module-version) = %{node_module_version}
Obsoletes: nodejs-waf
ExclusiveArch: %{ix86} %{x8664} arm
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -111,6 +114,12 @@ rm -r deps/openssl
rm -r deps/zlib
%build
+ver=$(awk '/#define NODE_MODULE_VERSION/{print $NF}' src/node.h)
+if [ $ver != %{node_module_version} ]; then
+ echo "Set %%define node_module_version to $ver and re-run."
+ exit 1
+fi
+
# CC used only to detect if CC is clang, not used for compiling
CC="%{__cc}" \
CXX="%{__cxx}" \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nodejs.git/commitdiff/8d8e2928d5f19c214a3b0be20572073ddb240a18
More information about the pld-cvs-commit
mailing list