T.C. Hollingsworth 8a74bff
%{?nodejs_find_provides_and_requires}
T.C. Hollingsworth 1b133ec
5af15af
# native-promise-only and rsvp not packaged yet
54dd355
%global enable_mocha_tests 1
54dd355
%global enable_nodeunit_tests 0
f56a49b
T.C. Hollingsworth 052c43e
Name:           nodejs-async
Jared K. Smith c555ada
Version:        1.5.2
0b46587
Release:        10%{?dist}
T.C. Hollingsworth 052c43e
Summary:        Higher-order functions and common patterns for asynchronous code
T.C. Hollingsworth 052c43e
T.C. Hollingsworth 052c43e
License:        MIT
5af15af
URL:            https://github.com/caolan/async/
5af15af
Source0:        https://github.com/caolan/async/archive/v%{version}/async-%{version}.tar.gz
54dd355
BuildArch:      noarch
54dd355
ExclusiveArch:  %{nodejs_arches} noarch
T.C. Hollingsworth 052c43e
54dd355
BuildRequires:  nodejs-packaging
T.C. Hollingsworth 052c43e
54dd355
%if 0%{?enable_mocha_tests}
5af15af
BuildRequires:  npm(mocha)
54dd355
BuildRequires:  npm(chai)
54dd355
%endif
54dd355
54dd355
%if 0%{?enable_nodeunit_tests}
f56a49b
BuildRequires:  npm(nodeunit)
5af15af
BuildRequires:  npm(bluebird)
5af15af
BuildRequires:  npm(es6-promise)
5af15af
BuildRequires:  npm(native-promise-only)
5af15af
BuildRequires:  npm(rsvp)
f56a49b
%endif
f56a49b
T.C. Hollingsworth 052c43e
%description
T.C. Hollingsworth 052c43e
Async is a utility module which provides straight-forward, powerful functions
T.C. Hollingsworth 052c43e
for working with asynchronous JavaScript. Although originally designed for
T.C. Hollingsworth 052c43e
use with Node.js, it can also be used directly in the browser.
T.C. Hollingsworth 052c43e
T.C. Hollingsworth 052c43e
Async provides around 20 functions that include the usual 'functional'
T.C. Hollingsworth 052c43e
suspects (map, reduce, filter, forEach…) as well as some common patterns
T.C. Hollingsworth 052c43e
for asynchronous control flow (parallel, series, waterfall…). All these
T.C. Hollingsworth 052c43e
functions assume you follow the Node.js convention of providing a single
T.C. Hollingsworth 052c43e
callback as the last argument of your async function.
T.C. Hollingsworth 052c43e
54dd355
T.C. Hollingsworth 052c43e
%prep
5af15af
%setup -q -n async-%{version}
T.C. Hollingsworth 052c43e
54dd355
T.C. Hollingsworth 052c43e
%build
T.C. Hollingsworth 052c43e
#nothing to do
T.C. Hollingsworth 052c43e
54dd355
T.C. Hollingsworth 052c43e
%install
T.C. Hollingsworth 052c43e
mkdir -p %{buildroot}%{nodejs_sitelib}/async
T.C. Hollingsworth b2effe8
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/async
T.C. Hollingsworth 052c43e
54dd355
f56a49b
%check
5af15af
%nodejs_symlink_deps --check
54dd355
%__nodejs -e "require('./')"
54dd355
%if 0%{?enable_mocha_tests}
5af15af
%{nodejs_sitelib}/mocha/bin/mocha mocha_test
54dd355
%endif
54dd355
%if 0%{?enable_nodeunit_tests}
f56a49b
%{nodejs_sitelib}/nodeunit/bin/nodeunit test/test-async.js
f56a49b
%endif
T.C. Hollingsworth 052c43e
T.C. Hollingsworth 052c43e
T.C. Hollingsworth 052c43e
%files
5af15af
%doc README.md CHANGELOG.md
5af15af
%license LICENSE
T.C. Hollingsworth 052c43e
%{nodejs_sitelib}/async
T.C. Hollingsworth 052c43e
54dd355
T.C. Hollingsworth 052c43e
%changelog
0b46587
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-10
0b46587
- Second attempt - Rebuilt for
0b46587
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0b46587
898bcca
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-9
898bcca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
898bcca
368ef00
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-8
368ef00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
368ef00
b7f5d4a
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-7
b7f5d4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b7f5d4a
2e8260e
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-6
2e8260e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2e8260e
7442973
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-5
7442973
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7442973
61d8c69
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-4
61d8c69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
61d8c69
87f0503
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-3
87f0503
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
87f0503
028be96
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
028be96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
028be96
Jared K. Smith c555ada
* Fri Jul 29 2016 Jared Smith <jsmith@fedoraproject.org> - 1.5.2-1
Jared K. Smith c555ada
- Update to upstream 1.5.2 release
Jared K. Smith c555ada
597f9ae
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
597f9ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
597f9ae
54dd355
* Tue Jan 26 2016 Tom Hughes <tom@compton.nu> - 1.5.0-2
54dd355
- cleanup spec file, removing %%defattr
54dd355
5af15af
* Sat Nov 21 2015 Tom Hughes <tom@compton.nu> - 1.5.0-1
5af15af
- update to 1.5.0 upstream release
5af15af
b880540
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.10-3
b880540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b880540
b7347fe
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.10-2
b7347fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b7347fe
dfae6bf
* Tue Mar 18 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.10-1
dfae6bf
- update to upstream release 0.2.10 (#1057505)
dfae6bf
65c3759
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.9-3
65c3759
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
65c3759
T.C. Hollingsworth a254594
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.9-2
T.C. Hollingsworth a254594
- restrict to compatible arches
T.C. Hollingsworth a254594
f56a49b
* Tue May 28 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.2.9-1
f56a49b
- update to upstream release 0.2.9
f56a49b
- add %%check
f56a49b
839efbc
* Sat May 25 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.2.8-1
839efbc
- update to upstream release 0.2.8
839efbc
T.C. Hollingsworth 1b133ec
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.6-2
T.C. Hollingsworth 1b133ec
- add macro for EPEL6 dependency generation
T.C. Hollingsworth 1b133ec
T.C. Hollingsworth 1ef07fb
* Wed Mar 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.6-1
T.C. Hollingsworth 1ef07fb
- new upstream release 0.2.6
T.C. Hollingsworth 1ef07fb
T.C. Hollingsworth e26e3ba
* Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.5-1
T.C. Hollingsworth e26e3ba
- new upstream release 0.2.5
T.C. Hollingsworth e26e3ba
T.C. Hollingsworth b2effe8
* Sat Feb 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.4-1
T.C. Hollingsworth b2effe8
- new upstream release 0.2.4
T.C. Hollingsworth b2effe8
T.C. Hollingsworth 052c43e
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.22-3
T.C. Hollingsworth 052c43e
- add missing build section
T.C. Hollingsworth 052c43e
T.C. Hollingsworth 052c43e
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.22-2
T.C. Hollingsworth 052c43e
- Fix URL
T.C. Hollingsworth 052c43e
- Provide a better description
T.C. Hollingsworth 052c43e
T.C. Hollingsworth 052c43e
* Mon Dec 31 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.22-1
T.C. Hollingsworth 052c43e
- initial package generated by npm2rpm