Package init

This commit is contained in:
lei_ju 2020-08-20 20:34:32 +08:00
parent 296e90e16e
commit 04c7fa5dbc
4 changed files with 77 additions and 0 deletions

24
LICENSE Normal file
View File

@ -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.

BIN
burrito-0.2.12.tgz Normal file

Binary file not shown.

49
nodejs-burrito.spec Normal file
View File

@ -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 <leiju4@huawei.com> - 0.2.12-1
- Package init

4
nodejs-burrito.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: substack/node-burrito
tag_prefix: "^"
seperator: "."