Blame SPECS/nodejs-async-each.spec

d556ec
%{?scl:%scl_package nodejs-%{npm_name}}
d556ec
%{!?scl:%global pkg_name %{name}}
d556ec
d556ec
%{?nodejs_find_provides_and_requires}
d556ec
%global npm_name async-each
d556ec
d556ec
# Tests disabled because it will not work yet
d556ec
%global enable_tests 0
d556ec
d556ec
Summary:       Ultra-simple async parallel forEach function for JavaScript
d556ec
Name:          %{?scl_prefix}nodejs-%{npm_name}
d556ec
Version:       1.0.0
d556ec
Release:       2%{?dist}
d556ec
License:       MIT
d556ec
URL:           https://github.com/paulmillr/async-each
d556ec
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
d556ec
BuildRequires: nodejs010-runtime
d556ec
ExclusiveArch: %{nodejs_arches} noarch
d556ec
BuildArch:     noarch
d556ec
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
d556ec
d556ec
%if 0%{?enable_tests}
d556ec
BuildRequires: %{?scl_prefix}nodejs(async)
d556ec
%endif
d556ec
d556ec
%description
d556ec
Ultra-simple, 35-lines-of-code async parallel forEach function for JavaScript.
d556ec
d556ec
We don't need junky 30K async libs. Really.
d556ec
d556ec
%prep
d556ec
%setup -q -n package
d556ec
d556ec
%build
d556ec
d556ec
%install
d556ec
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
d556ec
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
d556ec
d556ec
%nodejs_symlink_deps
d556ec
d556ec
%if 0%{?enable_tests}
d556ec
d556ec
%check
d556ec
%nodejs_symlink_deps --check
d556ec
node test.js
d556ec
%endif
d556ec
d556ec
%files
d556ec
%doc CHANGELOG.md README.md
d556ec
%{nodejs_sitelib}/%{npm_name}
d556ec
d556ec
%changelog
d556ec
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-2
d556ec
- Enable scl macros
d556ec
d556ec
* Mon Dec 14 2015 Troy Dawson <tdawson@redhat.com> - 1.0.0-1
d556ec
- Initial package