Group :: Development/Other
RPM: node-nan
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define pname nan
Name: node-nan
Version: 2.16.0
Release: alt1
Summary: Native Abstractions for Node.js
License: MIT License
Group: Development/Other
Url: https://github.com/nodejs/nan
Packager: Vitaly Lipatov <lav at altlinux.ru>
# Source-url: https://github.com/nodejs/nan/archive/v%version.tar.gz
Source: %name-%version.tar
Source1: %name-development-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-intro >= 1.9.18
BuildRequires(pre): rpm-macros-nodejs >= 0.20.5
BuildRequires: rpm-build-nodejs
#AutoReq: no
#AutoProv: no
%description
Thanks to the crazy changes in V8 (and some in Node core),
keeping native addons compiling happily across versions,
particularly 0.10 to 0.12 to 4.0, is a minor nightmare.
The goal of this project is to store all logic necessary
to develop native Node.js addons without having
to inspect NODE_MODULE_VERSION and get yourself into a macro-tangle.
This project also contains some helper utilities
that make addon development a bit more pleasant.
%prep
%setup -a 1
%build
%npm_build
node-gyp rebuild -C test
%check
%npm_test
%install
%npm_install
# hack: nan don't using any node_modules
#npm_prune
rm -rf %buildroot/%nodejs_sitelib/%pname/node_modules/
rm -rf %buildroot/%nodejs_sitelib/%pname/tools/
%files
%doc LICENSE.md README.md
%nodejs_sitelib/%pname/
%changelog
…
Full changelog you can see here
Name: node-nan
Version: 2.16.0
Release: alt1
Summary: Native Abstractions for Node.js
License: MIT License
Group: Development/Other
Url: https://github.com/nodejs/nan
Packager: Vitaly Lipatov <lav at altlinux.ru>
# Source-url: https://github.com/nodejs/nan/archive/v%version.tar.gz
Source: %name-%version.tar
Source1: %name-development-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-intro >= 1.9.18
BuildRequires(pre): rpm-macros-nodejs >= 0.20.5
BuildRequires: rpm-build-nodejs
#AutoReq: no
#AutoProv: no
%description
Thanks to the crazy changes in V8 (and some in Node core),
keeping native addons compiling happily across versions,
particularly 0.10 to 0.12 to 4.0, is a minor nightmare.
The goal of this project is to store all logic necessary
to develop native Node.js addons without having
to inspect NODE_MODULE_VERSION and get yourself into a macro-tangle.
This project also contains some helper utilities
that make addon development a bit more pleasant.
%prep
%setup -a 1
%build
%npm_build
node-gyp rebuild -C test
%check
%npm_test
%install
%npm_install
# hack: nan don't using any node_modules
#npm_prune
rm -rf %buildroot/%nodejs_sitelib/%pname/node_modules/
rm -rf %buildroot/%nodejs_sitelib/%pname/tools/
%files
%doc LICENSE.md README.md
%nodejs_sitelib/%pname/
%changelog
…
Full changelog you can see here