diff --git a/nodejs-make-generator-function-license.txt b/nodejs-make-generator-function-license.txt new file mode 100644 index 0000000..3f137ce --- /dev/null +++ b/nodejs-make-generator-function-license.txt @@ -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. diff --git a/nodejs-make-generator-function.spec b/nodejs-make-generator-function.spec new file mode 100644 index 0000000..8244020 --- /dev/null +++ b/nodejs-make-generator-function.spec @@ -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 - 1.1.0-1 +- package init diff --git a/nodejs-make-generator-function.yaml b/nodejs-make-generator-function.yaml new file mode 100644 index 0000000..e69a8b8 --- /dev/null +++ b/nodejs-make-generator-function.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: ljharb/make-generator-function +tag_prefix: "^v" +seperator: "." diff --git a/v1.1.0.tar.gz b/v1.1.0.tar.gz new file mode 100644 index 0000000..1466d5d Binary files /dev/null and b/v1.1.0.tar.gz differ