package init

This commit is contained in:
root 2020-08-20 17:38:14 +08:00
parent 5f7e272a47
commit bfe65471e0
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 @@
h{?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
* Mon Aug 17 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: "."