diff --git a/assertion-error-1.1.0.tar.gz b/assertion-error-1.1.0.tar.gz new file mode 100644 index 0000000..90ccfc1 Binary files /dev/null and b/assertion-error-1.1.0.tar.gz differ diff --git a/nodejs-assertion-error.spec b/nodejs-assertion-error.spec new file mode 100644 index 0000000..73e41a3 --- /dev/null +++ b/nodejs-assertion-error.spec @@ -0,0 +1,36 @@ +Name: nodejs-assertion-error +Version: 1.1.0 +Release: 1 +Summary: Error constructor for test and validation frameworks +License: MIT +URL: https://github.com/chaijs/assertion-error +Source0: https://github.com/chaijs/assertion-error/archive/%{version}/assertion-error-%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%description +Error constructor for test and validation frameworks that implements +standardized AssertionError specification. + +%prep +%autosetup -n assertion-error-%{version} +rm -rf node_modules + +%build + +%install +mkdir -p %{buildroot}/%{nodejs_sitelib}/assertion-error +cp -r package.json index.js %{buildroot}/%{nodejs_sitelib}/assertion-error +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{__nodejs} test/index.js + +%files +%doc README.md History.md +%{nodejs_sitelib}/assertion-error + +%changelog +* Mon Aug 17 2020 Shaoqiang Kang - 1.1.0-1 +- Package init diff --git a/nodejs-assertion-error.yaml b/nodejs-assertion-error.yaml new file mode 100644 index 0000000..0ee37a0 --- /dev/null +++ b/nodejs-assertion-error.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: chaijs/assertion-error +tag_prefix: "^" +seperator: "."