!1 package init

Merge pull request !1 from zhanghua/master
This commit is contained in:
openeuler-ci-bot 2020-08-21 00:17:42 +08:00 committed by Gitee
commit c105c78f8e
3 changed files with 45 additions and 0 deletions

41
nodejs-simple-assert.spec Normal file
View 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

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: chaijs/simple-assert
tag_pattern: "^"
seperator: "."