[nodejs-vow-fs] Initial import (#1115706)

Ralph Bean ralph at fedoraproject.org
Tue Jul 22 21:36:47 UTC 2014


commit 0ccca2f5e915f2b2571fb421674b5b63dfa4fc93
Author: Ralph Bean <rbean at redhat.com>
Date:   Tue Jul 22 17:36:38 2014 -0400

    Initial import (#1115706)

 .gitignore         |    1 +
 nodejs-vow-fs.spec |   83 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d254784 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/vow-fs-0.3.2.tgz
diff --git a/nodejs-vow-fs.spec b/nodejs-vow-fs.spec
new file mode 100644
index 0000000..e2c6713
--- /dev/null
+++ b/nodejs-vow-fs.spec
@@ -0,0 +1,83 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global barename vow-fs
+
+Name:               nodejs-vow-fs
+Version:            0.3.2
+Release:            2%{?dist}
+Summary:            File I/O by Vow
+
+Group:              Development/Libraries
+# https://github.com/dfilatov/vow-fs/blob/master/lib/fs.js
+License:            MIT and GPLv3
+URL:                https://www.npmjs.org/package/vow-fs
+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
+
+BuildRequires:      npm(node-uuid)
+BuildRequires:      npm(glob)
+BuildRequires:      npm(vow)
+BuildRequires:      npm(vow-queue)
+
+Requires:           npm(node-uuid)
+Requires:           npm(glob)
+Requires:           npm(vow)
+Requires:           npm(vow-queue)
+
+%if 0%{?enable_tests}
+BuildRequires:      npm(nodeunit)
+BuildRequires:      npm(istanbul)
+%endif
+
+
+%description
+[Vow](https://github.com/dfilatov/vow)-based file I/O for Node.js
+
+%prep
+%setup -q -n package
+
+# Remove bundled node_modules if there are any..
+rm -rf node_modules/
+
+%nodejs_fixdep --caret
+%nodejs_fixdep glob ^3.2
+
+%build
+%nodejs_symlink_deps --build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/vow-fs
+cp -pr package.json lib \
+    %{buildroot}%{nodejs_sitelib}/vow-fs
+
+%nodejs_symlink_deps
+
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+./node_modules/istanbul/lib/cli.js test test/runner.js
+%endif
+
+
+%files
+%doc README.md
+%{nodejs_sitelib}/vow-fs/
+
+%changelog
+* Mon Jul 21 2014 Ralph Bean <rbean at redhat.com> - 0.3.2-2
+- Specified noarch.
+
+* Tue Jul 08 2014 Ralph Bean <rbean at redhat.com> - 0.3.2-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..615871d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+942ba930f7960c9428fa026595a33fd3  vow-fs-0.3.2.tgz


More information about the scm-commits mailing list