nodejs-make-arrow-function/nodejs-make-arrow-function.spec

50 lines
1.5 KiB
RPMSpec
Raw Normal View History

2020-08-29 14:08:28 +08:00
%{?nodejs_find_provides_and_requires}
Name: nodejs-make-arrow-function
2023-10-30 16:40:42 +08:00
Version: 1.2.0
Release: 1
2020-08-29 14:08:28 +08:00
Summary: Function that returns an arbitrary arrow function
License: MIT
URL: https://github.com/ljharb/make-arrow-function
2020-09-08 16:07:14 +08:00
Source0: https://github.com/ljharb/make-arrow-function/archive/v%{version}.tar.gz
2020-08-29 14:08:28 +08:00
# 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
2021-06-09 12:24:48 +08:00
%autosetup -n make-arrow-function-%{version} -p1
2020-08-29 14:08:28 +08:00
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
2023-10-30 16:40:42 +08:00
* Mon Oct 30 2023 wulei <wu_lei@hoperun.com> - 1.2.0-1
- Update to 1.2.0
2021-06-09 12:24:48 +08:00
* Web 09 Jun 2021 zhaoyao<zhaoyao32@huawei.com> - 1.1.0-2
- %prep no longer patched with git
2020-08-29 14:08:28 +08:00
* Sat Aug 29 2020 wutao <wutao61@huawei.com> - 1.1.0-1
- package init