diff --git a/.gitignore b/.gitignore index 300e9e8..18a5205 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /tap-0.4.1.tgz /tap-0.4.4.tgz +/tap-0.7.1.tgz diff --git a/nodejs-tap.spec b/nodejs-tap.spec index d3cbf98..0e32b89 100644 --- a/nodejs-tap.spec +++ b/nodejs-tap.spec @@ -1,5 +1,3 @@ -%{?nodejs_find_provides_and_requires} - %global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d) %global enable_tests 1 @@ -13,34 +11,24 @@ URL: https://github.com/isaacs/node-tap Source0: https://registry.npmjs.org/tap/-/tap-%{version}.tgz Source1: macros.nodejs-tap -# 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 -# However, in koji it actually results in SIGTERM instead, so we're just going -# to skip the segv test altogether. -Patch1: nodejs-tap-segv-actually-segfaults.patch - BuildArch: noarch -%if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch -%else -ExclusiveArch: %{ix86} x86_64 %{arm} noarch -%endif BuildRequires: nodejs-packaging %if 0%{?enable_tests} # we need to replicate the dependencies of this package for it to be able to # test itself -BuildRequires: npm(inherits) = 1.0.0 -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(deep-equal) +BuildRequires: npm(difflet) BuildRequires: npm(glob) +BuildRequires: npm(inherits) +BuildRequires: npm(mkdirp) +BuildRequires: npm(nopt) +BuildRequires: npm(runforcover) +BuildRequires: npm(slide) +BuildRequires: npm(yamlish) %endif %description @@ -78,12 +66,14 @@ chmod 0755 %{buildroot}%{nodejs_sitelib}/tap/bin/* %nodejs_symlink_deps -%if 0%{?enable_tests} %check +%nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' + +%if 0%{?enable_tests} # Temporarily disable test/segv.js -rm -f test/segv.js +rm -f test/debug-test.js -%nodejs_symlink_deps --check %__nodejs %{buildroot}%{nodejs_sitelib}/tap/bin/tap.js test/*.js %endif diff --git a/sources b/sources index 846e155..3b70828 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -117d47c215326b4ccdcd6eb2ee71f869 tap-0.4.4.tgz +SHA512 (tap-0.7.1.tgz) = 0e1edfc98149ce3f5564ffce6bbf641567aad8ac4fc2308d1cd59cd265c94ea52aecf28bae183b77f991ef8f01b72f53287b1b331a452c79f56096558f125aba