%{?nodejs_find_provides_and_requires} Name: nodejs-make-arrow-function Version: 1.2.0 Release: 1 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 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 * Mon Oct 30 2023 wulei - 1.2.0-1 - Update to 1.2.0 * 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