nodejs-is-callable/nodejs-is-callable.spec
2023-02-10 15:36:44 +08:00

43 lines
1.2 KiB
RPMSpec

%{?nodejs_find_provides_and_requires}
Name: nodejs-is-callable
Version: 1.1.4
Release: 2
Summary: Is this JS value callable?
License: MIT
URL: https://github.com/ljharb/is-callable
Source0: https://registry.npmjs.org/is-callable/-/is-callable-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(foreach) npm(make-arrow-function) npm(make-generator-function) npm(tape)
%description
Is this JS value callable? Works with Functions and
GeneratorFunctions, despite ES6 @@toStringTag.
%prep
%setup -q -n package
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/is-callable
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/is-callable
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} test.js
%files
%doc README.md CHANGELOG.md
%license LICENSE
%{nodejs_sitelib}/is-callable
%changelog
* Fri Feb 10 2023 Ge Wang <wangge20@h-partners.com> - 1.1.4-2
- Remove es-staging option due to test-worthy harmony feature is no longer available in node
* Thu Aug 20 2020 wangxiao <wangxiao65@huawei.com> - 1.1.4-1
- Package init