From 3df7b7854fd9fb576aced15b7a96849619b800fa Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Jul 23 2014 15:12:08 +0000 Subject: Initial import (#1122213) --- diff --git a/.gitignore b/.gitignore index e69de29..aac1e3b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/breakable-1.0.0.tgz diff --git a/nodejs-breakable.spec b/nodejs-breakable.spec new file mode 100644 index 0000000..51d6a17 --- /dev/null +++ b/nodejs-breakable.spec @@ -0,0 +1,69 @@ +# This macro is needed at the start for building on EL6 +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +%global barename breakable + +Name: nodejs-breakable +Version: 1.0.0 +Release: 1%{?dist} +Summary: Break out of functions + +Group: Development/Libraries +License: MIT +URL: https://www.npmjs.org/package/breakable +Source0: http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz +BuildArch: noarch +%if 0%{?fedora} >= 19 +ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%endif + +BuildRequires: nodejs-packaging >= 6 + + + +%if 0%{?enable_tests} +BuildRequires: npm(tap) +%endif + + +%description +Break out of functions, recursive or not, in a more composable way than by +using exceptions explicitly. Non-local return. + +%prep +%setup -q -n package + +# Remove bundled node_modules if there are any.. +rm -rf node_modules/ + +%nodejs_fixdep --caret + +%build +%nodejs_symlink_deps --build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/breakable +cp -pr package.json breakable.js \ + %{buildroot}%{nodejs_sitelib}/breakable + +%nodejs_symlink_deps + + +%check +%if 0%{?enable_tests} +%nodejs_symlink_deps --check +tap test/*.js +%endif + + +%files +%doc README.md LICENSE +%{nodejs_sitelib}/breakable/ + +%changelog +* Tue Jul 22 2014 Ralph Bean - 1.0.0-1 +- Initial packaging for Fedora. diff --git a/sources b/sources index e69de29..1b67e6c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e5644d89365777bbc0fae74ed7fc0101 breakable-1.0.0.tgz