39 lines
1.2 KiB
RPMSpec
39 lines
1.2 KiB
RPMSpec
|
|
%global commit be8c976fd2a8c4fb0a50c764e97d7f3bf8619a13
|
||
|
|
Name: nodejs-deep-eql
|
||
|
|
Version: 0.1.3
|
||
|
|
Release: 1
|
||
|
|
Summary: Improved deep equality testing for Node.js and the browser
|
||
|
|
License: MIT
|
||
|
|
URL: https://github.com/chaijs/deep-eql
|
||
|
|
Source0: https://github.com/chaijs/deep-eql/archive/be8c976fd2a8c4fb0a50c764e97d7f3bf8619a13/deep-eql-be8c976fd2a8c4fb0a50c764e97d7f3bf8619a13.tar.gz
|
||
|
|
BuildArch: noarch
|
||
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
||
|
|
BuildRequires: nodejs-packaging
|
||
|
|
BuildRequires: npm(mocha) npm(simple-assert) npm(type-detect)
|
||
|
|
%description
|
||
|
|
Improved deep equality testing for Node.js and the browser.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n deep-eql-%{commit}
|
||
|
|
%nodejs_fixdep type-detect "^2.0.0"
|
||
|
|
rm -rf node_modules
|
||
|
|
|
||
|
|
%build
|
||
|
|
|
||
|
|
%install
|
||
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/deep-eql
|
||
|
|
cp -pr package.json index.js lib %{buildroot}%{nodejs_sitelib}/deep-eql
|
||
|
|
%nodejs_symlink_deps
|
||
|
|
|
||
|
|
%check
|
||
|
|
%nodejs_symlink_deps --check
|
||
|
|
%{nodejs_sitelib}/mocha/bin/mocha --require test/bootstrap --reporter list test/*.js
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc README.md History.md
|
||
|
|
%{nodejs_sitelib}/deep-eql
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Aug 17 2020 Anan Fu <fuanan3@huawei.com> - 0.1.3-1
|
||
|
|
- package init
|