commit
c105c78f8e
41
nodejs-simple-assert.spec
Normal file
41
nodejs-simple-assert.spec
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
%global commit ad723ef3c0e8e33ac55f40c0613204a3ff56c689
|
||||||
|
Name: nodejs-simple-assert
|
||||||
|
Version: 1.0.0
|
||||||
|
Release: 1
|
||||||
|
Summary: Vanilla assertions for Node.js
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/chaijs/simple-assert
|
||||||
|
Source0: https://github.com/chaijs/simple-assert/archive/%{commit}/simple-assert-%{commit}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
BuildRequires: npm(mocha) npm(assertion-error)
|
||||||
|
%description
|
||||||
|
A simple assert wrapper around chaijs/assertion-error. This probably
|
||||||
|
won't be useful to the average user unless you are a minimalist; you
|
||||||
|
probably want Chai. This software is used to avoid circular dependencies
|
||||||
|
when testing Chai's dependencies.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n simple-assert-%{commit}
|
||||||
|
%nodejs_fixdep assertion-error "^1.0.0"
|
||||||
|
rm -rf node_modules
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/simple-assert
|
||||||
|
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/simple-assert
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
%{nodejs_sitelib}/mocha/bin/mocha --require test/bootstrap --reporter spec test/*.js
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md History.md
|
||||||
|
%{nodejs_sitelib}/simple-assert
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 17 2020 zhanghua <zhanghua40@huawei.com> - 1.0.0-1
|
||||||
|
- Package init
|
||||||
4
nodejs-simple-assert.yaml
Normal file
4
nodejs-simple-assert.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: chaijs/simple-assert
|
||||||
|
tag_pattern: "^"
|
||||||
|
seperator: "."
|
||||||
BIN
simple-assert-ad723ef3c0e8e33ac55f40c0613204a3ff56c689.tar.gz
Normal file
BIN
simple-assert-ad723ef3c0e8e33ac55f40c0613204a3ff56c689.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user