nodejs-simple-assert/nodejs-simple-assert.spec

42 lines
1.3 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-20 09:49:42 +08:00
%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