From 959c108d002caf2517575eb8a4dde0116b97d9b9 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Jul 05 2015 12:46:23 +0000 Subject: Initial commit(#1239107) --- diff --git a/.gitignore b/.gitignore index e69de29..455e935 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/nested-error-stacks-1.0.0.tgz diff --git a/nodejs-nested-error-stacks.spec b/nodejs-nested-error-stacks.spec new file mode 100644 index 0000000..76be943 --- /dev/null +++ b/nodejs-nested-error-stacks.spec @@ -0,0 +1,56 @@ +%global enable_tests 0 +%global module_name nested-error-stacks + +Name: nodejs-%{module_name} +Version: 1.0.0 +Release: 1%{?dist} +Summary: An Error subclass that will chain nested Errors and dump nested stacktraces + +License: MIT +URL: https://github.com/mdlavin/nested-error-stacks +Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +BuildRequires: npm(mocha) +BuildRequires: npm(uuid) +BuildRequires: npm(chai) +%endif + +%description +With this module, you can wrap a caught exception with extra context for +better debugging. + +%prep +%setup -q -n package +rm -rf node_modules + +%build +# nothing to build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} +cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name} + +%nodejs_symlink_deps + +#disable tests as they need network access +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +node_modules/.bin/mocha +%endif + +%files +%doc README.md +%license LICENSE +%{nodejs_sitelib}/%{module_name} + +%changelog +* Fri Jul 03 2015 Parag Nemade - 1.0.0-1 +- Initial packaging + diff --git a/sources b/sources index e69de29..a9c8d80 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d9b49321a878f335d182027925d955b2 nested-error-stacks-1.0.0.tgz