nodejs-is-regex/nodejs-is-regex.spec

43 lines
1.1 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-20 19:47:50 +08:00
%{?nodejs_find_provides_and_requires}
Name: nodejs-is-regex
Version: 1.0.4
Release: 2
2020-08-20 19:47:50 +08:00
Summary: Is this value a JS regex?
License: MIT
URL: https://github.com/ljharb/is-regex
Source0: https://registry.npmjs.org/is-regex/-/is-regex-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging npm(tape)
%description
Is this value a JS regex? This module works cross-realm/iframe, and
despite ES6 @@toStringTag.
%prep
%setup -q -n package
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/is-regex
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/is-regex
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} --harmony test.js
2020-08-20 19:47:50 +08:00
%files
%{!?_licensedir:%global license %doc}
%doc README.md CHANGELOG.md
%license LICENSE
%{nodejs_sitelib}/is-regex
%changelog
* Fri Feb 10 2023 yaoxin <yaoxin30@h-partners.com> - 1.0.4-2
- Fix build failed due to nodejs update to 16.15.0
2020-08-20 19:47:50 +08:00
* Thu Aug 20 2020 wangxiao <wangxiao65@huawei.com> - 1.0.4-1
- Package init