From 3d0f46760b0e14f5b5ffa9c25f8028f1f87f3e91 Mon Sep 17 00:00:00 2001 From: Piotr Popieluch Date: Jun 16 2015 20:19:02 +0000 Subject: Initial import (#1194931). --- diff --git a/.gitignore b/.gitignore index e69de29..56fe8a8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/each-async-65f7f663e0e1a323c11bd0e036a08f585ab34a9c.tar.gz diff --git a/nodejs-each-async.spec b/nodejs-each-async.spec new file mode 100644 index 0000000..18ce705 --- /dev/null +++ b/nodejs-each-async.spec @@ -0,0 +1,66 @@ +# This macro is needed at the start for building on EL6 +%{?nodejs_find_provides_and_requires} + +%global enable_tests 1 +%global srcname each-async +%global commit 65f7f663e0e1a323c11bd0e036a08f585ab34a9c + +Name: nodejs-%{srcname} +Version: 1.1.1 +Release: 2%{?dist} +Summary: Async concurrent iterator (async forEach) +License: MIT +URL: https://github.com/sindresorhus/each-async +Source0: https://github.com/sindresorhus/%{srcname}/archive/%{commit}/%{srcname}-%{commit}.tar.gz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +BuildRequires: npm(mocha) +BuildRequires: npm(onetime) +BuildRequires: npm(set-immediate-shim) +%endif + + +%description +%{summary}. + + +%prep +%setup -q -n %{srcname}-%{commit} +rm -rf node_modules/ + + +%build +#nothing to do + + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{srcname} + +%nodejs_symlink_deps + + +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +mocha --timeout 20000t +%endif + + +%files +%doc readme.md +%license license +%{nodejs_sitelib}/%{srcname} + + +%changelog +* Sun Mar 8 2015 Piotr Popieluch - 1.1.1-2 +- update Source0 to comply with github source guidelines + +* Wed Dec 31 2014 Piotr Popieluch - 1.1.1-1 +- Initial package diff --git a/sources b/sources index e69de29..573efc5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b8d235dc960004d115d7ca111af84ae4 each-async-65f7f663e0e1a323c11bd0e036a08f585ab34a9c.tar.gz