[nodejs-through2] Initial import (#1176808)
Parag Nemade
pnemade at fedoraproject.org
Tue Dec 30 05:25:01 UTC 2014
commit 2e4d3846615879b4c032efa2c4f6476447cf0f1e
Author: Parag Nemade <pnemade at redhat.com>
Date: Tue Dec 30 10:54:55 2014 +0530
Initial import (#1176808)
.gitignore | 1 +
nodejs-through2.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..27fd312 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v0.6.3.tar.gz
diff --git a/nodejs-through2.spec b/nodejs-through2.spec
new file mode 100644
index 0000000..0142264
--- /dev/null
+++ b/nodejs-through2.spec
@@ -0,0 +1,56 @@
+%global enable_tests 1
+%global module_name through2
+
+Name: nodejs-%{module_name}
+Version: 0.6.3
+Release: 1%{?dist}
+Summary: Node streams2 Transform wrapper to avoid explicit subclassing noise
+
+License: MITNFA
+URL: https://github.com/rvagg/through2
+Source0: https://github.com/rvagg/through2/archive/v0.6.3.tar.gz
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: npm(tap)
+BuildRequires: npm(tape)
+BuildRequires: npm(xtend)
+BuildRequires: npm(bl)
+BuildRequires: npm(stream-spigot)
+%endif
+
+%description
+A tiny wrapper around Node streams2 Transform to avoid explicit subclassing
+noise.
+
+%prep
+%setup -q -n %{module_name}-%{version}
+rm -rf node_modules
+
+%nodejs_fixdep readable-stream ~1.x
+
+%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/test.js
+%endif
+
+%files
+%doc README.md LICENSE
+%{nodejs_sitelib}/%{module_name}
+
+%changelog
+* Mon Dec 22 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.6.3-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..9e3b6b4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b8c2adcccfa209b92aba4c24b0e326fd v0.6.3.tar.gz
More information about the scm-commits
mailing list