[nodejs-ftp] Initial import (#1122223)
Ralph Bean
ralph at fedoraproject.org
Fri Jul 25 15:15:25 UTC 2014
commit 654b90bafc8f5a32731bfcc3d29af5a5c682849c
Author: Ralph Bean <rbean at redhat.com>
Date: Fri Jul 25 11:15:15 2014 -0400
Initial import (#1122223)
.gitignore | 1 +
nodejs-ftp.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 70 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..72c7791 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ftp-0.3.7.tgz
diff --git a/nodejs-ftp.spec b/nodejs-ftp.spec
new file mode 100644
index 0000000..8e188ff
--- /dev/null
+++ b/nodejs-ftp.spec
@@ -0,0 +1,68 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global barename ftp
+
+Name: nodejs-ftp
+Version: 0.3.7
+Release: 1%{?dist}
+Summary: An FTP client module for node.js
+
+Group: Development/Libraries
+License: MIT
+URL: https://www.npmjs.org/package/ftp
+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(xregexp)
+BuildRequires: npm(readable-stream)
+
+Requires: npm(xregexp)
+Requires: npm(readable-stream)
+
+%description
+node-ftp is an FTP client module for node.js that provides an asynchronous
+interface for communicating with an FTP server.
+
+%prep
+%setup -q -n mscdex-node-ftp-67680c2
+
+# 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}/ftp
+cp -pr package.json lib/ \
+ %{buildroot}%{nodejs_sitelib}/ftp
+
+%nodejs_symlink_deps
+
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+node test/test.js
+%endif
+
+
+%files
+%doc LICENSE README.md TODO
+%{nodejs_sitelib}/ftp/
+
+%changelog
+* Tue Jul 22 2014 Ralph Bean <rbean at redhat.com> - 0.3.7-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..1fe98e3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f1d9d5f974f7bbb53aae84521fa485d0 ftp-0.3.7.tgz
More information about the scm-commits
mailing list