[nodejs-should] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Thu Apr 4 22:10:14 UTC 2013


commit 357e4740696358d89f6ea8f4e7b34981f359dabb
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Thu Apr 4 23:10:03 2013 +0100

    Initial import

 .gitignore         |    1 +
 nodejs-should.spec |   66 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 68 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..549df70 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/should-1.2.2.tgz
diff --git a/nodejs-should.spec b/nodejs-should.spec
new file mode 100644
index 0000000..48df2f6
--- /dev/null
+++ b/nodejs-should.spec
@@ -0,0 +1,66 @@
+%global enable_tests 0
+
+Name:       nodejs-should
+Version:    1.2.2
+Release:    1%{?dist}
+Summary:    A test framework agnostic BDD-style assertions for Node.js
+# License text is included in Readme.md
+License:    MIT
+Group:      System Environment/Libraries
+URL:        https://github.com/visionmedia/should.js
+Source0:    http://registry.npmjs.org/should/-/should-%{version}.tgz
+BuildArch:  noarch
+
+BuildRequires:  nodejs-devel
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(mocha)
+%endif
+
+%description
+should is an expressive, readable, test framework agnostic, behavior-driven
+development (BDD)-style assertion library for Node.js.
+
+It extends the Object prototype with a single non-enumerable getter that
+allows you to express how that object should behave.
+
+should literally extends Node's assert module. For example,
+should.equal(str, 'foo') will work, just as assert.equal(str, 'foo') would,
+and should.AssertionError is assert.AssertionError, meaning any test framework
+supporting this constructor will function properly with should.
+
+
+%prep
+%setup -q -n package
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/should
+cp -pr package.json index.js lib/ \
+    %{buildroot}%{nodejs_sitelib}/should
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%{nodejs_sitelib}/mocha/bin/mocha --ui exports
+%endif
+
+
+%files
+%doc History.md Readme.md examples/
+%{nodejs_sitelib}/should
+
+
+%changelog
+* Sun Feb 24 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.2.2-1
+- update to upstream release 1.2.2
+- fix typo in description
+
+* Thu Feb 14 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.2.1-1
+- initial package
diff --git a/sources b/sources
index e69de29..11524b4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+af392148456c8ae83ffed36c06bf5a90  should-1.2.2.tgz


More information about the scm-commits mailing list