[nodejs-zap] Initial import of nodejs-zap

Tom Hughes tomh at fedoraproject.org
Tue Mar 5 14:28:34 UTC 2013


commit 58a36c4edc648217c363bcfdfe24285c7ad0cded
Author: Tom Hughes <tom at compton.nu>
Date:   Tue Mar 5 14:28:22 2013 +0000

    Initial import of nodejs-zap

 .gitignore      |    1 +
 nodejs-zap.spec |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 zap-license.txt |   20 ++++++++++++++++++
 4 files changed, 81 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..facdd21 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/zap-0.2.5.tgz
diff --git a/nodejs-zap.spec b/nodejs-zap.spec
new file mode 100644
index 0000000..e9e8310
--- /dev/null
+++ b/nodejs-zap.spec
@@ -0,0 +1,59 @@
+%global enable_tests 0
+
+Name:           nodejs-zap
+Version:        0.2.5
+Release:        2%{?dist}
+Summary:        A tiny test runner
+
+# License file added upstream:
+# https://github.com/nornagon/node-zap/commit/bb04a7c6d9c4fa3bee135b63a19dd97fe6ec0964
+License:        MIT
+URL:            https://github.com/nornagon/node-zap
+Source0:        http://registry.npmjs.org/zap/-/zap-%{version}.tgz
+Source1:        zap-license.txt
+BuildArch:      noarch
+
+BuildRequires:  nodejs-devel
+
+%description
+A tiny test runner. Each test is run in a separate node
+instance - zap require()s your module once to work out what
+tests are in it, then once for each test in a new node process.
+
+
+%prep
+%setup -q -n package
+cp -pr %{SOURCE1} LICENSE
+rm -rf node_modules
+
+
+%build
+
+
+%if 0%{?enable_tests}
+%check
+./bin/zap
+%endif
+
+
+%install
+mkdir -p %{buildroot}/%{nodejs_sitelib}/zap
+cp -pr package.json bin %{buildroot}/%{nodejs_sitelib}/zap
+mkdir -p %{buildroot}/%{_bindir}
+ln -s  %{nodejs_sitelib}/zap/bin/zap %{buildroot}/%{_bindir}/zap
+%nodejs_symlink_deps
+
+
+%files
+%doc LICENSE README.md
+%{nodejs_sitelib}/zap
+%{_bindir}/zap
+
+
+%changelog
+* Mon Mar  4 2013 Tom Hughes <tom at compton.nu> - 0.2.5-2
+- Add copy of license file from upstream
+- Improve description
+
+* Sun Feb 24 2013 Tom Hughes <tom at compton.nu> - 0.2.5-1
+- Initial build of 0.2.5
diff --git a/sources b/sources
index e69de29..ca50768 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e9451387c72d6492eabf326f3a594087  zap-0.2.5.tgz
diff --git a/zap-license.txt b/zap-license.txt
new file mode 100644
index 0000000..6a7de69
--- /dev/null
+++ b/zap-license.txt
@@ -0,0 +1,20 @@
+Copyright 2013 Jeremy Apthorp
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


More information about the scm-commits mailing list