1 |
Name: nodejs-should-equal |
2 |
Version: 0.7.3 |
3 |
Release: %mkrel 2 |
4 |
Group: Development/Other |
5 |
Summary: Deep comparison of two instances for should.js |
6 |
|
7 |
License: MIT |
8 |
URL: https://github.com/shouldjs/equal |
9 |
Source0: https://registry.npmjs.org/should-equal/-/should-equal-%{version}.tgz |
10 |
BuildArch: noarch |
11 |
ExclusiveArch: %{ix86} x86_64 %{arm} noarch |
12 |
|
13 |
BuildRequires: nodejs-packaging |
14 |
|
15 |
BuildRequires: npm(mocha) |
16 |
BuildRequires: npm(should-type) |
17 |
|
18 |
|
19 |
%description |
20 |
%{summary}. |
21 |
|
22 |
|
23 |
%prep |
24 |
%setup -q -n package |
25 |
sed -i 's/\r$//' README.md |
26 |
rm -rf node_modules |
27 |
|
28 |
|
29 |
%build |
30 |
|
31 |
|
32 |
%install |
33 |
mkdir -p %{buildroot}%{nodejs_sitelib}/should-equal |
34 |
cp -pr package.json index.js format.js %{buildroot}%{nodejs_sitelib}/should-equal |
35 |
%nodejs_symlink_deps |
36 |
|
37 |
|
38 |
%check |
39 |
%nodejs_symlink_deps --check |
40 |
%{nodejs_sitelib}/mocha/bin/mocha --ui bdd test.js |
41 |
|
42 |
|
43 |
%files |
44 |
%doc README.md |
45 |
%license LICENSE |
46 |
%{nodejs_sitelib}/should-equal |
47 |
|
48 |
|
49 |
|