[nodejs-saucelabs] Initial commit (#1115703)

Ralph Bean ralph at fedoraproject.org
Tue Nov 25 16:46:22 UTC 2014


commit 07ddcc7f534983de4ad4f67e0033e63294e504da
Author: Ralph Bean <rbean at redhat.com>
Date:   Tue Nov 25 11:46:12 2014 -0500

    Initial commit (#1115703)

 .gitignore            |    1 +
 nodejs-saucelabs.spec |   74 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 76 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..aaac256 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/saucelabs-0.1.1.tgz
diff --git a/nodejs-saucelabs.spec b/nodejs-saucelabs.spec
new file mode 100644
index 0000000..439b9e0
--- /dev/null
+++ b/nodejs-saucelabs.spec
@@ -0,0 +1,74 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global barename saucelabs
+
+Name:               nodejs-saucelabs
+Version:            0.1.1
+Release:            2%{?dist}
+Summary:            A wrapper around Sauce Labs REST API
+
+Group:              Development/Libraries
+License:            MIT
+URL:                https://www.npmjs.org/package/saucelabs
+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)
+BuildRequires:      npm(chai)
+BuildRequires:      npm(jshint)
+BuildRequires:      npm(nock)
+%endif
+
+
+%description
+A wrapper around Sauce Labs REST API
+
+%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}/saucelabs
+cp -pr package.json lib index.js \
+    %{buildroot}%{nodejs_sitelib}/saucelabs
+
+%nodejs_symlink_deps
+
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+make lint test
+%endif
+
+
+%files
+%doc README.md
+%{nodejs_sitelib}/saucelabs/
+
+%changelog
+* Mon Nov 24 2014 Ralph Bean <rbean at redhat.com> - 0.1.1-2
+- Fix description, and noarch as per review.
+
+* Tue Jul 08 2014 Ralph Bean <rbean at redhat.com> - 0.1.1-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..bc49d5d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4f5950ba54b7593ad655409a07b92c89  saucelabs-0.1.1.tgz


More information about the scm-commits mailing list