%{?nodejs_find_provides_and_requires} Name: nodejs-make-arrow-function Version: 1.1.0 Release: 2 Summary: Function that returns an arbitrary arrow function License: MIT URL: https://github.com/ljharb/make-arrow-function Source0: https://github.com/ljharb/make-arrow-function/archive/v%{version}.tar.gz # 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 -n make-arrow-function-%{version} -p1 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 * Web 09 Jun 2021 zhaoyao - 1.1.0-2 - %prep no longer patched with git * Sat Aug 29 2020 wutao - 1.1.0-1 - package init