40 lines
1.1 KiB
RPMSpec
40 lines
1.1 KiB
RPMSpec
Name: nodejs-resumer
|
|
Version: 0.0.0
|
|
Release: 1
|
|
Summary: A stream that starts paused and resumes on the next tick
|
|
License: MIT
|
|
URL: https://github.com/substack/resumer
|
|
Source0: http://registry.npmjs.org/resumer/-/resumer-%{version}.tgz
|
|
# https://github.com/substack/resumer/pull/2
|
|
Patch0: nodejs-resumer-concat-stream.patch
|
|
BuildArch: noarch
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
BuildRequires: nodejs-packaging
|
|
BuildRequires: npm(tap) npm(tape) npm(concat-stream) npm(through)
|
|
%description
|
|
A through stream that starts paused and resumes on the next tick.
|
|
|
|
%prep
|
|
%setup -q -n package
|
|
%patch0 -p1
|
|
rm -rf node_modules
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/resumer
|
|
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/resumer
|
|
%nodejs_symlink_deps
|
|
|
|
%check
|
|
%nodejs_symlink_deps --check
|
|
%tap test/*.js
|
|
|
|
%files
|
|
%doc LICENSE readme.markdown example
|
|
%{nodejs_sitelib}/resumer
|
|
|
|
%changelog
|
|
* Thu Aug 20 2020 wangyue <wangyue92@huawei.com> - 0.0.0-1
|
|
- package init
|