[nodejs-tap/el6] initial import
T.C. Hollingsworth
patches at fedoraproject.org
Tue Apr 23 23:03:30 UTC 2013
commit fd284ff276db478a34177117643921b812c31675
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date: Tue Apr 23 16:01:24 2013 -0700
initial import
.gitignore | 1 +
macros.nodejs-tap | 4 +
nodejs-tap-segv-actually-segfaults.patch | 25 ++++++++
nodejs-tap.spec | 93 ++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 124 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7f8111c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tap-0.4.1.tgz
diff --git a/macros.nodejs-tap b/macros.nodejs-tap
new file mode 100644
index 0000000..8ea19fe
--- /dev/null
+++ b/macros.nodejs-tap
@@ -0,0 +1,4 @@
+# Macros to call tap in %%check
+# in case we want to pass options to tap later on, e.g. to increase the timeout
+%__tap /usr/bin/tap
+%tap %{__tap}
\ No newline at end of file
diff --git a/nodejs-tap-segv-actually-segfaults.patch b/nodejs-tap-segv-actually-segfaults.patch
new file mode 100644
index 0000000..7975e84
--- /dev/null
+++ b/nodejs-tap-segv-actually-segfaults.patch
@@ -0,0 +1,25 @@
+From c15a563df7df6ef4dd87eda4e86c21f9b8881c2c Mon Sep 17 00:00:00 2001
+From: "T.C. Hollingsworth" <tchollingsworth at gmail.com>
+Date: Mon, 22 Apr 2013 22:56:52 -0700
+Subject: [PATCH] tests: segv actually segfaults
+
+---
+ test/segv.js | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/segv.js b/test/segv.js
+index cb2c371..d0d6fba 100644
+--- a/test/segv.js
++++ b/test/segv.js
+@@ -38,7 +38,7 @@ test('segv', function (t) {
+ 'name': ' ././segv',
+ 'exit': null,
+ 'timedOut': true,
+- 'signal': 'SIGBUS',
++ 'signal': 'SIGSEGV',
+ 'command': '"./segv"' }
+ , 'tests 1'
+ , 'fail 1' ]
+--
+1.8.2
+
diff --git a/nodejs-tap.spec b/nodejs-tap.spec
new file mode 100644
index 0000000..a819fd0
--- /dev/null
+++ b/nodejs-tap.spec
@@ -0,0 +1,93 @@
+Name: nodejs-tap
+Version: 0.4.1
+Release: 2%{?dist}
+Summary: A Test Anything Protocol library
+BuildArch: noarch
+
+Group: Development/Tools
+License: MIT
+URL: https://github.com/isaacs/node-tap
+Source0: http://registry.npmjs.org/tap/-/tap-%{version}.tgz
+Source1: macros.nodejs-tap
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+# the segv test results in SIGSEGV as you would expect, not SIGBUS as is written
+# in the test: https://github.com/isaacs/node-tap/pull/75
+Patch1: nodejs-tap-segv-actually-segfaults.patch
+
+BuildRequires: nodejs-devel
+
+# we need to replicate the dependencies of this package for it to be able to
+# test itself
+BuildRequires: npm(inherits)
+BuildRequires: npm(yamlish)
+BuildRequires: npm(slide)
+BuildRequires: npm(runforcover)
+BuildRequires: npm(nopt)
+BuildRequires: npm(mkdirp)
+BuildRequires: npm(difflet)
+BuildRequires: npm(deep-equal)
+BuildRequires: npm(buffer-equal)
+BuildRequires: npm(glob)
+
+%description
+This is a mix-and-match set of utilities that you can use to write test
+harnesses and frameworks that communicate with one another using the
+Test Anything Protocol.
+
+%prep
+%setup -q -n package
+%patch1 -p1
+
+#remove bundled modules
+rm -rf node_modules
+
+%build
+#nothing to do
+
+%install
+rm -rf %buildroot
+
+mkdir -p %{buildroot}%{nodejs_sitelib}/tap
+cp -pr bin lib package.json %{buildroot}%{nodejs_sitelib}/tap
+
+mkdir -p %{buildroot}%{_bindir}
+ln -sf ../lib/node_modules/tap/bin/tap.js %{buildroot}%{_bindir}/tap
+
+#install some macros for use in RPM %%check sections
+install -Dpm0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.tap
+
+#make secondary scripts executable
+chmod 0755 %{buildroot}%{nodejs_sitelib}/tap/bin/*
+
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+%__nodejs %{buildroot}%{nodejs_sitelib}/tap/bin/tap.js test/*.js
+
+%clean
+rm -rf %buildroot
+
+%files
+%defattr(-,root,root,-)
+%{nodejs_sitelib}/tap
+%{_bindir}/tap
+%{_sysconfdir}/rpm/macros.tap
+%doc coverage-example example README.md AUTHORS LICENSE
+
+%changelog
+* Tue Apr 23 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.4.1-2
+- fix rpmlint warnings
+
+* Tue Apr 23 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.4.1-1
+- new upstream release 0.4.1
+- fix tests
+
+* Tue Jan 15 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.3.3-2
+- rename from tap to nodejs-tap
+- remove bootstrap logic that didn't work
+- instead we use ourself and BuildRequire everything we need
+
+* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.3.3-1
+- initial package generated by npm2rpm
diff --git a/sources b/sources
index e69de29..faadbbb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+432765d531d1980a6d95bde1b2567de6 tap-0.4.1.tgz
More information about the scm-commits
mailing list