[nodejs-stream-reduce] Initial import (#1172975)
Parag Nemade
pnemade at fedoraproject.org
Mon Dec 22 09:01:08 UTC 2014
commit 388bfcb0c2e3a04b8f64d89b80a1d3f38d50e30e
Author: Parag Nemade <pnemade at redhat.com>
Date: Mon Dec 22 14:30:57 2014 +0530
Initial import (#1172975)
.gitignore | 1 +
nodejs-stream-reduce.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..88b4324 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/stream-reduce-1.0.3.tgz
diff --git a/nodejs-stream-reduce.spec b/nodejs-stream-reduce.spec
new file mode 100644
index 0000000..6792731
--- /dev/null
+++ b/nodejs-stream-reduce.spec
@@ -0,0 +1,51 @@
+%global enable_tests 1
+%global module_name stream-reduce
+
+Name: nodejs-%{module_name}
+Version: 1.0.3
+Release: 1%{?dist}
+Summary: Reduce stream data to a single value
+
+License: Public Domain
+URL: https://github.com/parshap/node-stream-reduce/
+Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: npm(tape)
+%endif
+
+%description
+Like Array.prototype.reduce but for streams. Given a sync reduce function and
+an initial value it will return a through stream that emits a single data
+event with the reduced value once the input stream ends.
+
+%prep
+%setup -q -n package
+rm -rf node_modules
+
+%build
+# nothing to build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
+cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
+%nodejs_symlink_deps
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+node test.js
+%endif
+
+%files
+%doc README.md example.js
+%{nodejs_sitelib}/%{module_name}
+
+%changelog
+* Mon Dec 08 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0.3-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..5cef44f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e06a6c5773148a14b39a0a0dad3df8f5 stream-reduce-1.0.3.tgz
More information about the scm-commits
mailing list