[nodejs-nano] Initial import (#1172977)

Parag Nemade pnemade at fedoraproject.org
Tue Dec 30 08:35:52 UTC 2014


commit 1665bd46e7381c39bfc726758463934d8c110059
Author: Parag Nemade <pnemade at redhat.com>
Date:   Tue Dec 30 14:05:45 2014 +0530

    Initial import (#1172977)

 .gitignore       |    1 +
 nodejs-nano.spec |   63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f534d09 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nano-6.0.2.tgz
diff --git a/nodejs-nano.spec b/nodejs-nano.spec
new file mode 100644
index 0000000..daaa708
--- /dev/null
+++ b/nodejs-nano.spec
@@ -0,0 +1,63 @@
+# tape-it is not packaged yet
+%global enable_tests 0
+%global module_name nano
+
+Name:           nodejs-%{module_name}
+Version:        6.0.2
+Release:        1%{?dist}
+Summary:        Minimalistic couchdb driver for Node.js
+
+License:        ASL 2.0
+URL:            http://github.com/dscape/nano
+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(traceback)
+%endif
+
+%description
+minimalistic couchdb driver for node.js
+
+nano features:
+ * minimalistic - there is only a minimum of abstraction between you and couchdb
+ * pipes - proxy requests from couchdb directly to your end user
+ * errors - errors are proxied directly from couchdb: if you know couchdb you
+            already know nano.
+
+%prep
+%setup -q -n package
+rm -rf node_modules
+
+%nodejs_fixdep debug ~0.x
+%nodejs_fixdep request ~2.x
+%nodejs_fixdep underscore ~1.x
+
+%build
+# nothing to build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
+cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/%{module_name}
+%nodejs_symlink_deps
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+istanbul-js check-coverage --statements 100 --functions 100 --lines 100 --branches 100
+tape tests/*/*/*.js
+DEBUG=* NOCK_OFF=true istanbul-js cover tape tests/*/*/*.js
+%endif
+
+%files
+%doc README.md LICENSE.md examples
+%{nodejs_sitelib}/%{module_name}
+
+%changelog
+* Mon Dec 08 2014 Parag Nemade <pnemade AT redhat DOT com> - 6.0.2-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..d78f180 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f11ca69525e966d0a56eb311d0eee2d7  nano-6.0.2.tgz


More information about the scm-commits mailing list