[nodejs-deep-eql] Initial import of nodejs-deep-eql
Tom Hughes
tomh at fedoraproject.org
Mon Feb 24 14:41:14 UTC 2014
commit 2896539c0c9dbbd1b64416566c8849eb361792a3
Author: Tom Hughes <tom at compton.nu>
Date: Mon Feb 24 14:41:47 2014 +0000
Initial import of nodejs-deep-eql
.gitignore | 2 +
deep-eql-dl-tests.sh | 23 ++++++++++++++++++++
nodejs-deep-eql.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 2 +
4 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..31c2c53 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/deep-eql-0.1.3.tgz
+/deep-eql-tests-0.1.3.tar.bz2
diff --git a/deep-eql-dl-tests.sh b/deep-eql-dl-tests.sh
new file mode 100755
index 0000000..033a1eb
--- /dev/null
+++ b/deep-eql-dl-tests.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+tag=0.1.3
+
+set -e
+
+tmp=$(mktemp -d)
+
+trap cleanup EXIT
+cleanup() {
+ set +e
+ [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
+}
+
+unset CDPATH
+pwd=$(pwd)
+
+pushd "$tmp"
+git clone git://github.com/chaijs/deep-eql.git
+cd deep-eql
+git archive --prefix="test/" --format=tar tags/${tag}:test/ \
+ | bzip2 > "$pwd"/deep-eql-tests-${tag}.tar.bz2
+popd
diff --git a/nodejs-deep-eql.spec b/nodejs-deep-eql.spec
new file mode 100644
index 0000000..7aee91d
--- /dev/null
+++ b/nodejs-deep-eql.spec
@@ -0,0 +1,56 @@
+Name: nodejs-deep-eql
+Version: 0.1.3
+Release: 1%{?dist}
+Summary: Improved deep equality testing for Node.js and the browser
+
+License: MIT
+URL: https://github.com/chaijs/deep-eql
+Source0: http://registry.npmjs.org/deep-eql/-/deep-eql-%{version}.tgz
+# The test files are not included in the npm tarball.
+# Source1 is generated using Source10, which pulls from the upstream
+# version control repository.
+Source1: deep-eql-tests-%{version}.tar.bz2
+Source10: deep-eql-dl-tests.sh
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+
+BuildRequires: npm(mocha)
+BuildRequires: npm(simple-assert)
+BuildRequires: npm(type-detect)
+
+%description
+Improved deep equality testing for Node.js and the browser.
+
+
+%prep
+%setup -q -n package
+%setup -T -D -a 1 -q -n package
+%nodejs_fixdep type-detect "~0.1.2"
+rm -rf node_modules
+
+
+%build
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/deep-eql
+cp -pr package.json index.js lib %{buildroot}%{nodejs_sitelib}/deep-eql
+%nodejs_symlink_deps
+
+
+%check
+%nodejs_symlink_deps --check
+%{nodejs_sitelib}/mocha/bin/mocha --require test/bootstrap --reporter list test/*.js
+
+
+%files
+%doc README.md History.md
+%{nodejs_sitelib}/deep-eql
+
+
+
+%changelog
+* Fri Jan 31 2014 Tom Hughes <tom at compton.nu> - 0.1.3-1
+- Initial build of 0.1.3
diff --git a/sources b/sources
index e69de29..7cf663b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+b66937ec0d5860afdefec6dab127ddad deep-eql-0.1.3.tgz
+7c43b94506c945ff21e2ed17f18a6dc7 deep-eql-tests-0.1.3.tar.bz2
More information about the scm-commits
mailing list