[nodejs-assertion-error] Initial import of nodejs-assertion-error

Tom Hughes tomh at fedoraproject.org
Sun Aug 18 19:55:45 UTC 2013


commit 25d168b1703510e99bbabc746d850c0412fe4c7f
Author: Tom Hughes <tom at compton.nu>
Date:   Sun Aug 18 20:55:22 2013 +0100

    Initial import of nodejs-assertion-error

 .gitignore                  |    2 +
 assertion-error-dl-tests.sh |   23 ++++++++++++++++++
 nodejs-assertion-error.spec |   55 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    2 +
 4 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..19850b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/assertion-error-1.0.0.tgz
+/assertion-error-tests-1.0.0.tar.bz2
diff --git a/assertion-error-dl-tests.sh b/assertion-error-dl-tests.sh
new file mode 100755
index 0000000..8b35e39
--- /dev/null
+++ b/assertion-error-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/assertion-error.git
+cd assertion-error
+git archive --prefix="test/" --format=tar tags/${tag}:test/ \
+    | bzip2 > "$pwd"/assertion-error-tests-${tag}.tar.bz2
+popd
diff --git a/nodejs-assertion-error.spec b/nodejs-assertion-error.spec
new file mode 100644
index 0000000..5bb44bb
--- /dev/null
+++ b/nodejs-assertion-error.spec
@@ -0,0 +1,55 @@
+%global enable_tests 1
+
+Name:           nodejs-assertion-error
+Version:        1.0.0
+Release:        1%{?dist}
+Summary:        Error constructor for test and validation frameworks
+
+License:        MIT
+URL:            https://github.com/chaijs/assertion-error
+Source0:        http://registry.npmjs.org/assertion-error/-/assertion-error-%{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:        assertion-error-tests-%{version}.tar.bz2
+Source10:       assertion-error-dl-tests.sh
+BuildArch:      noarch
+ExclusiveArch:  %{nodejs_arches} noarch
+
+BuildRequires:  nodejs-packaging
+
+%description
+Error constructor for test and validation frameworks that implements
+standardized AssertionError specification.
+
+
+%prep
+%setup -q -n package
+%setup -T -D -a 1 -q -n package
+rm -rf node_modules
+
+
+%build
+
+
+%install
+mkdir -p %{buildroot}/%{nodejs_sitelib}/assertion-error
+cp -r package.json index.js %{buildroot}/%{nodejs_sitelib}/assertion-error
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+%{__nodejs} test/index.js
+%endif
+
+
+%files
+%doc README.md History.md
+%{nodejs_sitelib}/assertion-error
+
+
+%changelog
+* Sat Aug 17 2013 Tom Hughes <tom at compton.nu> - 1.0.0-1
+- Initial build of 1.0.0
diff --git a/sources b/sources
index e69de29..d7229ff 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+860e964c29cc94fe4b1a1e52db225a08  assertion-error-1.0.0.tgz
+f90fe6522f14313d35d74d5f4add8c08  assertion-error-tests-1.0.0.tar.bz2


More information about the scm-commits mailing list