[nodejs-runforcover/el6] initial import
T.C. Hollingsworth
patches at fedoraproject.org
Mon Apr 15 23:23:06 UTC 2013
commit 6032992c717ea733fddc695cc6596b1fb2007d67
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date: Mon Apr 15 15:57:17 2013 -0700
initial import
.gitignore | 1 +
nodejs-runforcover.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 63 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..695f83d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/runforcover-0.0.2.tgz
diff --git a/nodejs-runforcover.spec b/nodejs-runforcover.spec
new file mode 100644
index 0000000..2831f08
--- /dev/null
+++ b/nodejs-runforcover.spec
@@ -0,0 +1,61 @@
+#disable tests since nodejs-bunker isn't in the distro yet
+#%%global enable_tests 1
+
+Name: nodejs-runforcover
+Version: 0.0.2
+Release: 2%{?dist}
+Summary: Require plugin for JS code coverage
+BuildArch: noarch
+
+Group: System Environment/Libraries
+#no license file included; "new BSD" indicated in package.json
+License: BSD
+URL: https://github.com/chrisdickinson/node-runforcover
+Source0: http://registry.npmjs.org/runforcover/-/runforcover-%{version}.tgz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: nodejs-devel
+
+%if 0%{?enable_tests}
+BuildRequires: npm(bunker)
+%endif
+
+%description
+Runforcover hooks into the `require()` function and uses nodejs-bunker to
+provide code coverage data for your unit test library, whatever it might be.
+
+%prep
+%setup -q -n package
+
+%build
+#nothing to do
+
+%install
+rm -rf %buildroot
+
+mkdir -p %{buildroot}%{nodejs_sitelib}/runforcover
+cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/runforcover
+
+%nodejs_symlink_deps
+
+%if 0%{?enable_tests}
+%check
+mkdir -p node_modules
+ln -sf %{nodejs_sitelib}/bunker node_modules/bunker
+%__nodejs test/index.js
+%endif
+
+%clean
+rm -rf %buildroot
+
+%files
+%defattr(-,root,root,-)
+%{nodejs_sitelib}/runforcover
+%doc README.markdown
+
+%changelog
+* Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.0.2-2
+- fix and conditionalize tests
+
+* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.0.2-1
+- initial package generated by npm2rpm
diff --git a/sources b/sources
index e69de29..0d7e215 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8dfd79463d4ec8ed349e63b32ee63731 runforcover-0.0.2.tgz
More information about the scm-commits
mailing list