package init
This commit is contained in:
parent
16b08be3dc
commit
91717f76bd
BIN
bl-1.2.1.tgz
Normal file
BIN
bl-1.2.1.tgz
Normal file
Binary file not shown.
46
nodejs-bl.spec
Normal file
46
nodejs-bl.spec
Normal file
@ -0,0 +1,46 @@
|
||||
%global enable_tests 1
|
||||
%global srcname bl
|
||||
Name: nodejs-%{srcname}
|
||||
Version: 1.2.1
|
||||
Release: 1
|
||||
Summary: A Node.js Buffer list collector, reader and streamer
|
||||
License: MIT
|
||||
URL: https://github.com/rvagg/bl
|
||||
Source0: https://registry.npmjs.org/bl/-/bl-%{version}.tgz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(tape) npm(hash_file) npm(readable-stream)
|
||||
%endif
|
||||
%description
|
||||
bl is a storage object for collections of Node Buffers, exposing them with the
|
||||
main Buffer readable API. Also works as a duplex stream so you can collect
|
||||
buffers from a stream that emits them and emit buffers to a stream that
|
||||
consumes them!
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
rm -rf node_modules/
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
%nodejs_symlink_deps
|
||||
%if 0%{?enable_tests}
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
node test/test.js
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE.md
|
||||
%{nodejs_sitelib}/%{srcname}
|
||||
|
||||
%changelog
|
||||
* Mon Aug 17 2020 Shaoqiang Kang <kangshaoqiang1@huawei.com> - 1.2.1-1
|
||||
- Package init
|
||||
4
nodejs-bl.yaml
Normal file
4
nodejs-bl.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: rvagg/bl
|
||||
tag_prefix: "v"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user