[nodejs-agent-base] Initial import (#1122208)

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


commit 45fa45d73ee357f41a98d53fe6a0916febe7ecf5
Author: Ralph Bean <rbean at redhat.com>
Date:   Wed Jul 23 11:08:08 2014 -0400

    Initial import (#1122208)

 .gitignore             |    1 +
 nodejs-agent-base.spec |   70 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 72 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6d08fcf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/agent-base-1.0.1.tgz
diff --git a/nodejs-agent-base.spec b/nodejs-agent-base.spec
new file mode 100644
index 0000000..e66701b
--- /dev/null
+++ b/nodejs-agent-base.spec
@@ -0,0 +1,70 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global barename agent-base
+
+Name:               nodejs-agent-base
+Version:            1.0.1
+Release:            1%{?dist}
+Summary:            Turn a function into an `http.Agent` instance
+
+Group:              Development/Libraries
+License:            MIT
+URL:                https://www.npmjs.org/package/agent-base
+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(mocha)
+%endif
+
+
+%description
+This module provides an http.Agent generator. That is, you pass it an async
+callback function, and it returns a new http.Agent instance that will invoke
+the given callback function when sending outbound HTTP requests.
+
+%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}/agent-base
+cp -pr package.json agent.js \
+    %{buildroot}%{nodejs_sitelib}/agent-base
+
+%nodejs_symlink_deps
+
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+mocha --reporter spec
+%endif
+
+
+%files
+%doc README.md
+%{nodejs_sitelib}/agent-base/
+
+%changelog
+* Tue Jul 22 2014 Ralph Bean <rbean at redhat.com> - 1.0.1-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..4d27bb1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3d4adbddf61a13a5b9426373ce42a70c  agent-base-1.0.1.tgz


More information about the scm-commits mailing list