[nodejs-istanbul] Initial import (#1171263).

piotrp piotrp at fedoraproject.org
Wed Dec 10 21:36:28 UTC 2014


commit ae692a5bcbb0dff90ee9037d8237bdf5e4da2394
Author: Piotr Popieluch <piotr1212 at gmail.com>
Date:   Wed Dec 10 22:36:24 2014 +0100

    Initial import (#1171263).

 .gitignore                  |    2 +
 nodejs-istanbul-dl-tests.sh |   23 ++++++++++++
 nodejs-istanbul.spec        |   83 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    2 +
 4 files changed, 110 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8a1ded5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/istanbul-0.3.2.tgz
+/nodejs-istanbul-tests-v0.3.0.tar.bz2
diff --git a/nodejs-istanbul-dl-tests.sh b/nodejs-istanbul-dl-tests.sh
new file mode 100755
index 0000000..3a018a7
--- /dev/null
+++ b/nodejs-istanbul-dl-tests.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+tag=v0.3.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/gotwarlost/istanbul.git
+cd istanbul
+git archive --prefix="test/" --format=tar tags/${tag}:test/ \
+    | bzip2 > "$pwd"/nodejs-istanbul-tests-${tag}.tar.bz2
+popd
diff --git a/nodejs-istanbul.spec b/nodejs-istanbul.spec
new file mode 100644
index 0000000..f9ee136
--- /dev/null
+++ b/nodejs-istanbul.spec
@@ -0,0 +1,83 @@
+%global enable_tests 0
+%global srcname istanbul
+
+Name:           nodejs-%{srcname}
+Version:        0.3.2
+Release:        3%{?dist}
+Summary:        A JS code coverage tool written in JS
+License:        BSD
+Group:          System Environment/Libraries
+URL:            https://github.com/gotwarlost/istanbul
+Source0:        http://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz
+Source1:        nodejs-istanbul-tests-v0.3.0.tar.bz2
+Source10:       nodejs-istanbul-dl-tests.sh
+
+BuildArch:      noarch
+ExclusiveArch:  %{nodejs_arches} noarch
+
+BuildRequires:  nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(nodeunit)
+BuildRequires:  npm(fileset)
+BuildRequires:  npm(escodegen)
+BuildRequires:  npm(requirejs)
+BuildRequires:  npm(handlebars)
+%endif
+
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+%setup -q -T -D -a 1 -n package
+rm -rf node_modules/
+%nodejs_fixdep async
+%nodejs_fixdep esprima
+%nodejs_fixdep handlebars
+%nodejs_fixdep js-yaml
+%nodejs_fixdep mkdirp
+%nodejs_fixdep nopt
+%nodejs_fixdep resolve
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
+cp -pr package.json index.js lib/  %{buildroot}%{nodejs_sitelib}/%{srcname}
+
+mkdir -p %{buildroot}%{_bindir}
+ln -s %{nodejs_sitelib}/%{srcname}/lib/cli.js %{buildroot}%{_bindir}/istanbul-js
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+test/run.js
+%endif
+
+
+%files
+%doc README.md LICENSE yui-coverage-comparison.md CHANGELOG.md
+%{nodejs_sitelib}/%{srcname}
+%{_bindir}/istanbul-js
+
+
+%changelog
+* Wed Dec 10 2014 Piotr Popieluch <piotr1212 at gmail.com> - 0.3.2-3
+- Renamed binary name to prevent conflict
+- Temporary disabled tests because of RHBZ#1172471
+
+* Sat Dec  6 2014 Piotr Popieluch <piotr1212 at gmail.com> - 0.3.2-2
+- Removed group tag
+- Added rm -rf node_modules
+
+* Fri Nov 21 2014 Piotr Popieluch <piotr1212 at gmail.com> - 0.3.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..643b81f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+d96e7fc1c92a08a6d24dbb73d5242740  istanbul-0.3.2.tgz
+b58ecc5b64b2d12990a584fbbb1f3c72  nodejs-istanbul-tests-v0.3.0.tar.bz2


More information about the scm-commits mailing list