%{?nodejs_find_provides_and_requires} Name: nodejs-make-arrow-function Version: 1.1.0 Release: 1 Summary: Function that returns an arbitrary arrow function License: MIT URL: https://github.com/ljharb/make-arrow-function Source0: https://registry.npmjs.org/make-arrow-function/-/make-arrow-function-%{version}.tgz # https://github.com/ljharb/make-arrow-function/pull/1 Source1: nodejs-make-arrow-function-license.txt # https://github.com/ljharb/make-arrow-function/commit/cab9a8347a302432e8b01474830c5ea81499ba09 Patch0: nodejs-make-arrow-function-tests.patch BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging BuildRequires: npm(tape) %description Function that returns an arbitrary arrow function, or undefined if arrow function syntax is unsupported. %prep %autosetup -p 1 -n package cp %{SOURCE1} LICENSE rm -rf node_modules %build %install mkdir -p %{buildroot}%{nodejs_sitelib}/make-arrow-function cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/make-arrow-function %nodejs_symlink_deps %check %nodejs_symlink_deps --check %{__nodejs} test/index.js %files %{!?_licensedir:%global license %doc} %doc README.md CHANGELOG.md %license LICENSE %{nodejs_sitelib}/make-arrow-function %changelog * Sat Aug 29 2020 wutao - 1.1.0-1 - package init