diff --git a/nodejs-simple-assert.spec b/nodejs-simple-assert.spec new file mode 100644 index 0000000..229c359 --- /dev/null +++ b/nodejs-simple-assert.spec @@ -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 - 1.0.0-1 +- Package init diff --git a/nodejs-simple-assert.yaml b/nodejs-simple-assert.yaml new file mode 100644 index 0000000..b7994a7 --- /dev/null +++ b/nodejs-simple-assert.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: chaijs/simple-assert +tag_pattern: "^" +seperator: "." diff --git a/simple-assert-ad723ef3c0e8e33ac55f40c0613204a3ff56c689.tar.gz b/simple-assert-ad723ef3c0e8e33ac55f40c0613204a3ff56c689.tar.gz new file mode 100644 index 0000000..9f92e80 Binary files /dev/null and b/simple-assert-ad723ef3c0e8e33ac55f40c0613204a3ff56c689.tar.gz differ