!2 package init

Merge pull request !2 from 康少强/master
This commit is contained in:
openeuler-ci-bot 2020-09-01 11:49:04 +08:00 committed by Gitee
commit b6b1a5c05f
3 changed files with 45 additions and 0 deletions

BIN
bindings-1.3.0.tgz Normal file

Binary file not shown.

41
nodejs-bindings.spec Normal file
View File

@ -0,0 +1,41 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-bindings
Version: 1.3.0
Release: 1
Summary: Helper module for loading your native module's .node file
License: MIT
URL: https://github.com/TooTallNate/node-bindings
Source0: https://registry.npmjs.org/bindings/-/bindings-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%description
This is a helper module for authors of Node.js native addon modules.
It is basically the "swiss army knife" of require()ing your native module's
.node file.
Throughout the course of Node's native addon history, addons have ended up
being compiled in a variety of different places, depending on which build tool
and which version of node was used. To make matters worse, now the gyp build
tool can produce either a Release or Debug build, each being built into
different locations.
This module checks all the possible locations that a native addon would be
built at, and returns the first one that loads successfully.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/bindings
cp -pr package.json bindings.js \
%{buildroot}%{nodejs_sitelib}/bindings
%nodejs_symlink_deps
%files
%doc README.md
%{nodejs_sitelib}/bindings
%changelog
* Thu Aug 20 2020 shaoqiang kang <kangshaoqiang1@huawei.com> - 1.3.0-1
- Package init

4
nodejs-bindings.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: TooTallNate/node-bindings
tag_prefix: "v"
seperator: "."