[nodejs-follow] Initial import (#1172976)

Parag Nemade pnemade at fedoraproject.org
Tue Dec 30 08:22:49 UTC 2014


commit 92befd51b26e7dbe55d06e2f007da2c7585f8246
Author: Parag Nemade <pnemade at redhat.com>
Date:   Tue Dec 30 13:52:49 2014 +0530

    Initial import (#1172976)

 .gitignore         |    1 +
 nodejs-follow.spec |   69 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c6f1515 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/follow-0.11.4.tgz
diff --git a/nodejs-follow.spec b/nodejs-follow.spec
new file mode 100644
index 0000000..236770e
--- /dev/null
+++ b/nodejs-follow.spec
@@ -0,0 +1,69 @@
+%global enable_tests 0
+%global module_name follow
+
+Name:           nodejs-%{module_name}
+Version:        0.11.4
+Release:        2%{?dist}
+Summary:        Extremely robust, fault-tolerant CouchDB changes follower
+
+License:        ASL 2.0
+URL:            https://github.com/iriscouch/follow
+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(tap)
+BuildRequires:  npm(tape)
+%endif
+
+%description
+Follow (upper-case F) comes from an internal Iris Couch project used in
+production for over a year. It works in the browser (beta) and is
+available as an NPM module.
+
+%prep
+%setup -q -n package
+rm -rf node_modules
+
+#remove shebang
+sed -i -e '/^#!\//, 1d' browser/export.js
+
+sed -i 's\ || 0.8.x\\g' package.json
+
+%nodejs_fixdep debug ~0.x
+%nodejs_fixdep request ~2.x
+
+%build
+# nothing to build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
+cp -pr package.json *.js browser lib %{buildroot}%{nodejs_sitelib}/%{module_name}
+mkdir -p %{buildroot}%{_bindir}
+ln -s %{nodejs_sitelib}/%{module_name}/cli.js %{buildroot}%{_bindir}/follow
+
+%nodejs_symlink_deps
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+tap test/*.js
+%endif
+
+%files
+%doc README.md LICENSE AUTHORS
+%{_bindir}/follow
+%{nodejs_sitelib}/%{module_name}
+
+%changelog
+* Sun Dec 28 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.11.4-2
+- Initial packaging
+- Fix binary file path
+- Fix node engine version to 0.10.x
+
+* Tue Dec 09 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.11.4-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..e3e8032 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+07df972d94cbc9757146bb376f538ae5  follow-0.11.4.tgz


More information about the scm-commits mailing list