[nodejs-duplexify] Initial import (#1176811)

Parag Nemade pnemade at fedoraproject.org
Tue Dec 30 06:33:51 UTC 2014


commit 667eaba271fb34b99561734e757a7b74331fcaad
Author: Parag Nemade <pnemade at redhat.com>
Date:   Tue Dec 30 12:03:51 2014 +0530

    Initial import (#1176811)

 .gitignore            |    1 +
 nodejs-duplexify.spec |   55 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0c19bf3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/duplexify-3.2.0.tgz
diff --git a/nodejs-duplexify.spec b/nodejs-duplexify.spec
new file mode 100644
index 0000000..38f6df5
--- /dev/null
+++ b/nodejs-duplexify.spec
@@ -0,0 +1,55 @@
+%global enable_tests 1
+%global module_name duplexify
+
+Name:           nodejs-%{module_name}
+Version:        3.2.0
+Release:        1%{?dist}
+Summary:        Turn a writeable and readable stream into a single streams2 duplex stream
+
+License:        MIT
+URL:            https://github.com/mafintosh/duplexify
+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)
+BuildRequires:  npm(tap)
+BuildRequires:  npm(through2)
+BuildRequires:  npm(concat-stream)
+BuildRequires:  npm(end-of-stream)
+%endif
+
+%description
+%{summary}.
+
+%prep
+%setup -q -n package
+rm -rf node_modules
+
+%nodejs_fixdep end-of-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
+tap test.js
+%endif
+
+%files
+%doc README.md LICENSE
+%{nodejs_sitelib}/%{module_name}
+
+%changelog
+* Mon Dec 22 2014 Parag Nemade <pnemade AT redhat DOT com> - 3.2.0-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..c9f47be 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ae61f60f8ad074ef548d16e90fcb0284  duplexify-3.2.0.tgz


More information about the scm-commits mailing list