nodejs-type-detect/nodejs-type-detect.spec

39 lines
1.0 KiB
RPMSpec
Raw Normal View History

2020-08-20 10:27:27 +08:00
Name: nodejs-type-detect
Version: 2.0.2
Release: 1
Summary: Improved typeof detection for Node.js and the browser
License: MIT
URL: https://github.com/chaijs/type-detect
Source0: https://github.com/chaijs/type-detect/archive/v%{version}/type-detect-%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(mocha) npm(simple-assert)
%description
Improved typeof detection for Node.js and the browser.
%prep
%autosetup -n type-detect-%{version}
%nodejs_setversion %{version}
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/type-detect
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/type-detect
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/mocha/bin/mocha
%files
%doc README.md
%license LICENSE
%{nodejs_sitelib}/type-detect
%changelog
* Tue Aug 11 2020 zhanghua <zhanghua40@huawei.com> - 2.0.2-1
- package init