2020-08-20 16:33:56 +08:00
|
|
|
%{?nodejs_find_provides_and_requires}
|
|
|
|
|
%global barename core-util-is
|
|
|
|
|
Name: nodejs-core-util-is
|
|
|
|
|
Version: 1.0.2
|
|
|
|
|
Release: 1
|
|
|
|
|
Summary: The util.is functions introduced in Node v0.12
|
|
|
|
|
License: MIT
|
2020-09-08 10:19:23 +08:00
|
|
|
URL: https://github.com/isaacs/core-util-is
|
|
|
|
|
Source0: https://github.com/isaacs/core-util-is/archive/v%{version}.tar.gz
|
2020-08-20 16:33:56 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
|
|
BuildRequires: nodejs-packaging >= 6
|
|
|
|
|
%description
|
|
|
|
|
The util.is functions introduced in Node v0.12.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-09-08 10:19:23 +08:00
|
|
|
%autosetup -n core-util-is-%{version}
|
2020-08-20 16:33:56 +08:00
|
|
|
rm -rf node_modules/
|
|
|
|
|
%nodejs_fixdep --caret
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%nodejs_symlink_deps --build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/core-util-is
|
|
|
|
|
cp -pr package.json lib \
|
|
|
|
|
%{buildroot}%{nodejs_sitelib}/core-util-is
|
|
|
|
|
%nodejs_symlink_deps
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{nodejs_sitelib}/core-util-is/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 17 2020 Anan Fu <fuanan3@huawei.com> - 1.0.2-1
|
|
|
|
|
- package init
|