package init

This commit is contained in:
wang_yue111 2020-09-10 10:32:17 +08:00
parent 5fe2d7933d
commit 00f4db5acf
3 changed files with 3 additions and 6 deletions

BIN
0.9.1.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,15 +1,12 @@
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
%global enable_tests 0
Name: nodeunit
Version: 0.9.1
Release: 1
Summary: Easy asynchronous unit testing framework for Node.js
License: MIT
URL: https://github.com/caolan/nodeunit
#wget https://registry.npmjs.org/nodeunit/-/nodeunit-%{version}.tgz
#tar -xvf nodeunit-%{version}.tgz
#tar -cvf nodeunit-%{version}.tar.gz package
Source0: %{name}-%{version}.tar.gz
Source0: https://github.com/caolan/nodeunit/archive/0.9.1.tar.gz
Patch0: %{name}-0.8.6-Load-system-modules.patch
Patch1: %{name}-0.8.6-Use-system-assert.js.patch
Patch2: %{name}-0.9.1-Use-newer-should.patch
@ -30,7 +27,7 @@ Nodeunit provides an easy asynchronous unit testing framework for Node.js:
- allows the use of mocks and stubs
%prep
%setup -q -n package
%setup -q -n %{name}-%{version}
rm -rf deps/
rm -f lib/assert.js
%patch0 -p1