6897a97
%global enable_tests 1
6897a97
%global srcname run-parallel-limit
6897a97
6897a97
Name:           nodejs-%{srcname}
6897a97
Version:        1.0.1
6897a97
Release:        1%{?dist}
6897a97
Summary:        Run functions in parallel with a limit on concurrent tasks
6897a97
License:        MIT
6897a97
URL:            https://github.com/feross/run-parallel-limit
6897a97
Source0:        https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz
6897a97
6897a97
BuildArch:      noarch
6897a97
ExclusiveArch:  %{nodejs_arches} noarch
6897a97
6897a97
BuildRequires:  nodejs-packaging
6897a97
6897a97
%if 0%{?enable_tests}
6897a97
#BuildRequires:  npm(standard)
6897a97
BuildRequires:  npm(tape)
6897a97
BuildRequires:  npm(dezalgo)
6897a97
#BuildRequires:  npm(zuul)
6897a97
%endif
6897a97
6897a97
%description
6897a97
Run an array of functions in parallel, but limit the number of tasks executing
6897a97
at the same time.
6897a97
6897a97
%prep
6897a97
%setup -q -n package
6897a97
rm -rf node_modules
6897a97
6897a97
%build
6897a97
#nothing to do
6897a97
6897a97
%install
6897a97
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
6897a97
cp -pr package.json index.js \
6897a97
    %{buildroot}%{nodejs_sitelib}/%{srcname}
6897a97
6897a97
%nodejs_symlink_deps
6897a97
6897a97
%if 0%{?enable_tests}
6897a97
%check
6897a97
%nodejs_symlink_deps --check
6897a97
tape test/*.js
6897a97
%endif
6897a97
6897a97
%files
6897a97
%doc README.md
6897a97
%license LICENSE
6897a97
%{nodejs_sitelib}/%{srcname}
6897a97
6897a97
%changelog
6897a97
* Sat Aug 29 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.0.1-1
6897a97
- Initial package