|
|
64e848 |
%{?scl:%scl_package nodejs-async}
|
|
|
64e848 |
%{!?scl:%global pkg_name %{name}}
|
|
|
64e848 |
%{?nodejs_find_provides_and_requires}
|
|
|
64e848 |
|
|
|
64e848 |
%global enable_tests 0
|
|
|
64e848 |
|
|
|
64e848 |
Name: %{?scl_prefix}nodejs-async
|
|
|
64e848 |
Version: 0.2.9
|
|
|
64e848 |
Release: 3%{?dist}
|
|
|
64e848 |
Summary: Higher-order functions and common patterns for asynchronous code
|
|
|
64e848 |
BuildArch: noarch
|
|
|
64e848 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
64e848 |
|
|
|
64e848 |
Group: System Environment/Libraries
|
|
|
64e848 |
License: MIT
|
|
|
64e848 |
URL: http://github.com/caolan/async/
|
|
|
64e848 |
Source0: http://registry.npmjs.org/async/-/async-%{version}.tgz
|
|
|
64e848 |
# Source1 is generated by running Source10, which pulls from the upstream
|
|
|
64e848 |
# revision control repository.
|
|
|
64e848 |
#Source1: tests-v0.2.5.tar.bz2
|
|
|
64e848 |
Source10: dl-tests.sh
|
|
|
64e848 |
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
64e848 |
|
|
|
64e848 |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
64e848 |
|
|
|
64e848 |
#%if 0%{?enable_tests}
|
|
|
64e848 |
#BuildRequires: npm(nodeunit)
|
|
|
64e848 |
#%endif
|
|
|
64e848 |
|
|
|
64e848 |
%description
|
|
|
64e848 |
Async is a utility module which provides straight-forward, powerful functions
|
|
|
64e848 |
for working with asynchronous JavaScript. Although originally designed for
|
|
|
64e848 |
use with Node.js, it can also be used directly in the browser.
|
|
|
64e848 |
|
|
|
64e848 |
Async provides around 20 functions that include the usual 'functional'
|
|
|
64e848 |
suspects (map, reduce, filter, forEach…) as well as some common patterns
|
|
|
64e848 |
for asynchronous control flow (parallel, series, waterfall…). All these
|
|
|
64e848 |
functions assume you follow the Node.js convention of providing a single
|
|
|
64e848 |
callback as the last argument of your async function.
|
|
|
64e848 |
|
|
|
64e848 |
%prep
|
|
|
64e848 |
%setup -q -n package
|
|
|
64e848 |
#%setup -q -T -D -a 1 -n package
|
|
|
64e848 |
|
|
|
64e848 |
%build
|
|
|
64e848 |
#nothing to do
|
|
|
64e848 |
|
|
|
64e848 |
%install
|
|
|
64e848 |
rm -rf %buildroot
|
|
|
64e848 |
mkdir -p %{buildroot}%{nodejs_sitelib}/async
|
|
|
64e848 |
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/async
|
|
|
64e848 |
|
|
|
64e848 |
#%if 0%{?enable_tests}
|
|
|
64e848 |
#%check
|
|
|
64e848 |
#%{nodejs_sitelib}/nodeunit/bin/nodeunit test/test-async.js
|
|
|
64e848 |
#%endif
|
|
|
64e848 |
|
|
|
64e848 |
%clean
|
|
|
64e848 |
rm -rf %buildroot
|
|
|
64e848 |
|
|
|
64e848 |
%files
|
|
|
64e848 |
%defattr(-,root,root,-)
|
|
|
64e848 |
%{nodejs_sitelib}/async
|
|
|
64e848 |
%doc README.md LICENSE
|
|
|
64e848 |
|
|
|
64e848 |
%changelog
|
|
|
64e848 |
* Thu Oct 17 2013 Tomas Hrcka <thrcka@redhat.com> - 0.2.9-3
|
|
|
64e848 |
- replace provides and requires with macro
|
|
|
64e848 |
|
|
|
64e848 |
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.9-2
|
|
|
64e848 |
- restrict to compatible arches
|
|
|
64e848 |
|
|
|
64e848 |
* Tue May 28 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.2.9-1
|
|
|
64e848 |
- update to upstream release 0.2.9
|
|
|
64e848 |
- add %%check
|
|
|
64e848 |
|
|
|
64e848 |
* Sat May 25 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.2.8-1
|
|
|
64e848 |
- update to upstream release 0.2.8
|
|
|
64e848 |
|
|
|
64e848 |
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.6-2
|
|
|
64e848 |
- add macro for EPEL6 dependency generation
|
|
|
64e848 |
|
|
|
64e848 |
* Thu Apr 11 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.2.6-2
|
|
|
64e848 |
- Add support for software collections
|
|
|
64e848 |
|
|
|
64e848 |
* Wed Mar 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.6-1
|
|
|
64e848 |
- new upstream release 0.2.6
|
|
|
64e848 |
|
|
|
64e848 |
* Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.5-1
|
|
|
64e848 |
- new upstream release 0.2.5
|
|
|
64e848 |
|
|
|
64e848 |
* Sat Feb 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.4-1
|
|
|
64e848 |
- new upstream release 0.2.4
|
|
|
64e848 |
|
|
|
64e848 |
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.22-3
|
|
|
64e848 |
- add missing build section
|
|
|
64e848 |
|
|
|
64e848 |
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.22-2
|
|
|
64e848 |
- Fix URL
|
|
|
64e848 |
- Provide a better description
|
|
|
64e848 |
|
|
|
64e848 |
* Mon Dec 31 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.22-1
|
|
|
64e848 |
- initial package generated by npm2rpm
|