[nodejs-co] Initial import (#1122215)

Ralph Bean ralph at fedoraproject.org
Wed Jul 23 18:15:57 UTC 2014


commit 3fd94a62bd7e2c5a5f1a1721ab875f2280b730d1
Author: Ralph Bean <rbean at redhat.com>
Date:   Wed Jul 23 14:15:50 2014 -0400

    Initial import (#1122215)

 .gitignore     |    1 +
 nodejs-co.spec |   72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0d62dec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/co-3.0.6.tgz
diff --git a/nodejs-co.spec b/nodejs-co.spec
new file mode 100644
index 0000000..d71470f
--- /dev/null
+++ b/nodejs-co.spec
@@ -0,0 +1,72 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global barename co
+
+Name:               nodejs-co
+Version:            3.0.6
+Release:            1%{?dist}
+Summary:            Generator async flow control goodness
+
+Group:              Development/Libraries
+License:            MIT
+URL:                https://www.npmjs.org/package/co
+Source0:            http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz
+BuildArch:          noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch:      %{nodejs_arches} noarch
+%else
+ExclusiveArch:      %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires:      nodejs-packaging >= 6
+
+%if 0%{?enable_tests}
+BuildRequires:      npm(q)
+BuildRequires:      npm(matcha)
+BuildRequires:      npm(thunkify)
+BuildRequires:      npm(should)
+BuildRequires:      npm(request)
+BuildRequires:      npm(mocha)
+%endif
+
+%description
+Generator based flow-control goodness for nodejs and the browser, using
+thunks _or_ promises, letting you write non-blocking code in a nice-ish
+way.
+
+%prep
+%setup -q -n package
+
+# Remove bundled node_modules if there are any..
+rm -rf node_modules/
+
+%nodejs_fixdep --caret
+
+%build
+%nodejs_symlink_deps --build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/co
+cp -pr package.json index.js \
+    %{buildroot}%{nodejs_sitelib}/co
+
+%nodejs_symlink_deps
+
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+make test
+%endif
+
+
+%files
+%doc Readme.md
+%{nodejs_sitelib}/co/
+
+%changelog
+* Tue Jul 22 2014 Ralph Bean <rbean at redhat.com> - 3.0.6-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..3fd6bef 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+156b67b3195ebe41420c801af5d1de2e  co-3.0.6.tgz


More information about the scm-commits mailing list