package init

This commit is contained in:
jackie_wu 2020-08-29 14:15:55 +08:00
parent 9e9369d57b
commit c07e7b58ed
3 changed files with 66 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (C) 2015 Jordan Harband
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@ -0,0 +1,45 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-make-generator-function
Version: 1.1.0
Release: 1
Summary: Returns an arbitrary generator function
License: MIT
URL: https://github.com/ljharb/make-generator-function
Source0: https://registry.npmjs.org/make-generator-function/-/make-generator-function-%{version}.tgz
# https://github.com/ljharb/make-generator-function/pull/1
Source1: nodejs-make-generator-function-license.txt
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(tape)
%description
Returns an arbitrary generator function, or undefined if generator
syntax is unsupported. If both generator syntax and concise method
syntax are supported, the generator function returned will have
a "concise" property containing a concise generator method.
%prep
%setup -q -n package
cp %{SOURCE1} LICENSE
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/make-generator-function
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/make-generator-function
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} --harmony test/index.js
%files
%{!?_licensedir:%global license %doc}
%doc README.md CHANGELOG.md
%license LICENSE
%{nodejs_sitelib}/make-generator-function
%changelog
* Sat Aug 29 2020 wutao <wutao61@huawei.com> - 1.1.0-1
- package init