[nodejs-event-stream] Initial import (#1172968)

Parag Nemade pnemade at fedoraproject.org
Tue Dec 30 07:57:45 UTC 2014


commit 8f65e9d38e09c44a5a8fba6c5b3a9cb4156a87e7
Author: Parag Nemade <pnemade at redhat.com>
Date:   Tue Dec 30 13:27:47 2014 +0530

    Initial import (#1172968)

 .gitignore               |    1 +
 nodejs-event-stream.spec |   58 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 60 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..12600a7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/event-stream-3.1.7.tgz
diff --git a/nodejs-event-stream.spec b/nodejs-event-stream.spec
new file mode 100644
index 0000000..313e3f3
--- /dev/null
+++ b/nodejs-event-stream.spec
@@ -0,0 +1,58 @@
+# Disabled as  some modules are not in fedora
+%global enable_tests 0
+
+%global module_name event-stream
+
+Name:           nodejs-%{module_name}
+Version:        3.1.7
+Release:        1%{?dist}
+Summary:        Construct pipes of streams of events
+
+License:        MIT
+URL:            https://github.com/dominictarr/event-stream
+Source0:        https://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(it-is)
+BuildRequires:  npm(asynct)
+BuildRequires:  npm(stream-spec)
+%endif
+
+%description
+%{summary}.
+
+%prep
+%setup -q -n package
+rm -rf node_modules
+
+%nodejs_fixdep map-stream ~0.x
+%nodejs_fixdep split ~0.x
+%nodejs_fixdep stream-combiner ~0.x
+
+%build
+# nothing to build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
+cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
+
+%nodejs_symlink_deps
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+set -e; for t in test/*.js; do node $t; done
+%endif
+
+%files
+%doc readme.markdown LICENCE examples
+%{nodejs_sitelib}/%{module_name}
+
+%changelog
+* Sun Dec 07 2014 Parag Nemade <pnemade AT redhat DOT com> - 3.1.7-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..989bd7b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+89888b9ab9b2fbb8f81d836a204d5643  event-stream-3.1.7.tgz


More information about the scm-commits mailing list