Name: nodejs-should-format Version: 0.3.2 Release: 1 Summary: Formatting of objects for should.js License: MIT URL: https://github.com/shouldjs/format Source0: https://registry.npmjs.org/should-format/-/should-format-%{version}.tgz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging BuildRequires: npm(mocha) npm(should-type) Patch0001: 0001-Fix-tests-for-Node.js-6.5.patch %description %{summary}. %prep %setup -q -n package %patch0001 -p1 sed -i 's/\r$//' README.md rm -rf node_modules %build %install mkdir -p %{buildroot}%{nodejs_sitelib}/should-format cp -pr package.json index.js util.js %{buildroot}%{nodejs_sitelib}/should-format %nodejs_symlink_deps %check %nodejs_symlink_deps --check %{nodejs_sitelib}/mocha/bin/mocha --ui bdd tests/test.js %files %doc README.md %license LICENSE %{nodejs_sitelib}/should-format %changelog * Wed Aug 12 2020 wangyue - 0.3.2-1 - package init