diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4310183 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +Copyright (c) 2009, James Halliday. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the organization nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ''AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/burrito-0.2.12.tgz b/burrito-0.2.12.tgz new file mode 100644 index 0000000..188b9c0 Binary files /dev/null and b/burrito-0.2.12.tgz differ diff --git a/nodejs-burrito.spec b/nodejs-burrito.spec new file mode 100644 index 0000000..d63133c --- /dev/null +++ b/nodejs-burrito.spec @@ -0,0 +1,49 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 0 +Name: nodejs-burrito +Version: 0.2.12 +Release: 1 +Summary: Wrap up expressions with a trace function while walking the AST +License: BSD +URL: https://github.com/substack/node-burrito +Source0: https://registry.npmjs.org/burrito/-/burrito-%{version}.tgz +Source1: https://raw.github.com/substack/lambdascape/master/LICENSE +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(tap) +%endif + +%description +Burrito makes it easy to do crazy stuff with the JavaScript AST. +This is useful if you want to roll your own stack traces or build a code +coverage tool. + +%prep +%setup -q -n package +%nodejs_fixdep uglify-js '~1.3.4' +%nodejs_fixdep traverse '~0.6.3' +cp -p %{SOURCE1} LICENSE + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/burrito +cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/burrito +%nodejs_symlink_deps +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +%tap test/*.js +%endif + +%files +%{nodejs_sitelib}/burrito +%doc README.markdown example +%license LICENSE + +%changelog +* Tue Aug 18 2020 leiju - 0.2.12-1 +- Package init diff --git a/nodejs-burrito.yaml b/nodejs-burrito.yaml new file mode 100644 index 0000000..17e870b --- /dev/null +++ b/nodejs-burrito.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: substack/node-burrito +tag_prefix: "^" +seperator: "."