!2 package init

Merge pull request !2 from jackie_wu123/master
This commit is contained in:
openeuler-ci-bot 2020-09-09 11:26:27 +08:00 committed by Gitee
commit a5ff842ead
4 changed files with 69 additions and 0 deletions

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,44 @@
%{?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://github.com/ljharb/make-generator-function/archive/v%{version}.tar.gz
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
%autosetup -n make-generator-function-%{version}
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

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: ljharb/make-generator-function
tag_prefix: "^v"
seperator: "."

BIN
v1.1.0.tar.gz Normal file

Binary file not shown.