[nodejs-simple-assert] Initial import of nodejs-simple-assert

Tom Hughes tomh at fedoraproject.org
Mon Feb 24 13:45:18 UTC 2014


commit 6ed1488d06d4d33a6dde7ba40547ea6c930c443a
Author: Tom Hughes <tom at compton.nu>
Date:   Mon Feb 24 13:45:57 2014 +0000

    Initial import of nodejs-simple-assert

 .gitignore                |    2 +
 nodejs-simple-assert.spec |   57 +++++++++++++++++++++++++++++++++++++++++++++
 simple-assert-dl-tests.sh |   23 ++++++++++++++++++
 sources                   |    2 +
 4 files changed, 84 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9b4d444 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/simple-assert-1.0.0.tgz
+/simple-assert-tests-1.0.0.tar.bz2
diff --git a/nodejs-simple-assert.spec b/nodejs-simple-assert.spec
new file mode 100644
index 0000000..99b7304
--- /dev/null
+++ b/nodejs-simple-assert.spec
@@ -0,0 +1,57 @@
+Name:           nodejs-simple-assert
+Version:        1.0.0
+Release:        1%{?dist}
+Summary:        Vanilla assertions for Node.js
+
+License:        MIT
+URL:            https://github.com/chaijs/simple-assert
+Source0:        http://registry.npmjs.org/simple-assert/-/simple-assert-%{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:        simple-assert-tests-%{version}.tar.bz2
+Source10:       simple-assert-dl-tests.sh
+BuildArch:      noarch
+ExclusiveArch:  %{nodejs_arches} noarch
+
+BuildRequires:  nodejs-packaging
+
+BuildRequires:  npm(mocha)
+BuildRequires:  npm(assertion-error)
+
+%description
+A simple assert wrapper around chaijs/assertion-error. This probably
+won't be useful to the average user unless you are a minimalist; you
+probably want Chai. This software is used to avoid circular dependencies
+when testing Chai's dependencies.
+
+
+%prep
+%setup -q -n package
+%setup -T -D -a 1 -q -n package
+rm -rf node_modules
+
+
+%build
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/simple-assert
+cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/simple-assert
+%nodejs_symlink_deps
+
+
+%check
+%nodejs_symlink_deps --check
+%{nodejs_sitelib}/mocha/bin/mocha --require test/bootstrap --reporter spec test/*.js
+
+
+%files
+%doc README.md History.md 
+%{nodejs_sitelib}/simple-assert
+
+
+
+%changelog
+* Fri Jan 31 2014 Tom Hughes <tom at compton.nu> - 1.0.0-1
+- Initial build of 1.0.0
diff --git a/simple-assert-dl-tests.sh b/simple-assert-dl-tests.sh
new file mode 100755
index 0000000..35a436e
--- /dev/null
+++ b/simple-assert-dl-tests.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+tag=1.0.0
+
+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/simple-assert.git
+cd simple-assert
+git archive --prefix="test/" --format=tar tags/${tag}:test/ \
+    | bzip2 > "$pwd"/simple-assert-tests-${tag}.tar.bz2
+popd
diff --git a/sources b/sources
index e69de29..680684d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+690fafe18c365ee07008127c2805cb43  simple-assert-1.0.0.tgz
+05be07cc1f71663ffadad0fb2d47b467  simple-assert-tests-1.0.0.tar.bz2


More information about the scm-commits mailing list