%{?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 # 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 %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