commit
bef3cbe899
38
nodejs-should-equal.spec
Normal file
38
nodejs-should-equal.spec
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
Name: nodejs-should-equal
|
||||||
|
Version: 0.8.0
|
||||||
|
Release: 1
|
||||||
|
Summary: Deep comparison of two instances for should.js
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/shouldjs/equal
|
||||||
|
Source0: https://registry.npmjs.org/should-equal/-/should-equal-%{version}.tgz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
BuildRequires: npm(mocha) npm(should-type)
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
sed -i 's/\r$//' README.md
|
||||||
|
rm -rf node_modules
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/should-equal
|
||||||
|
cp -pr package.json index.js format.js %{buildroot}%{nodejs_sitelib}/should-equal
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
%{nodejs_sitelib}/mocha/bin/mocha --ui bdd test.js
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{nodejs_sitelib}/should-equal
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Aug 12 2020 wangyue <wangyue92@huawei.com> - 0.8.0-1
|
||||||
|
- package init
|
||||||
5
nodejs-should-equal.yaml
Normal file
5
nodejs-should-equal.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://github.com/shouldjs/equal
|
||||||
|
version_control: github
|
||||||
|
src_repo: shouldjs/equal
|
||||||
|
tag_prefix: "^"
|
||||||
|
seperator: "."
|
||||||
BIN
should-equal-0.8.0.tgz
Normal file
BIN
should-equal-0.8.0.tgz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user