package init

This commit is contained in:
jackie_wu 2020-08-21 16:43:12 +08:00
parent 12d4a7f746
commit 572324f7d4
3 changed files with 45 additions and 0 deletions

BIN
nan-0.8.0.tgz Normal file

Binary file not shown.

41
nodejs-nan0.spec Normal file
View File

@ -0,0 +1,41 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-nan0
Version: 0.8.0
Release: 1
Summary: Native Abstractions for Node.js
License: MIT
URL: http://github.com/rvagg/nan
Source0: http://registry.npmjs.org/nan/-/nan-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
Provides: %{name}-devel = %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
BuildRequires: nodejs-packaging
%description
A header file filled with macro and utility goodness
for making add on development for Node.js easier across
versions 0.8, 0.10 and 0.11, and eventually 0.12.
Thanks to the crazy changes in V8 (and some in Node core),
keeping native add-on compiling happily across versions,
particularly 0.10 to 0.11/0.12, is a minor nightmare.
The goal of this project is to store all logic necessary
to develop native Node.js add-on without having to inspect
NODE_MODULE_VERSION and get yourself into a macro-tangle.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/nan@0
cp -pr package.json include_dirs.js nan.h \
%{buildroot}%{nodejs_sitelib}/nan@0
%files
%doc LICENSE README.md
%{nodejs_sitelib}/nan@0
%changelog
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 0.8.0-1
- Package init

4
nodejs-nan0.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: rvagg/nan
tag_prefix: "^v"
seperator: "."