# there is an circular dependency with nodejs-request %global enable_tests 0 %global srcname hock Name: nodejs-%{srcname} Version: 1.2.0 Release: 2%{?dist} Summary: A mocking server for HTTP requests License: MIT URL: https://github.com/mmalecki/hock Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(mocha) BuildRequires: npm(request) BuildRequires: npm(should) BuildRequires: npm(deep-equal) %endif %description %{summary}. %prep %setup -q -n package rm -rf node_modules %nodejs_fixdep deep-equal %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} cp -pr package.json lib/ \ %{buildroot}%{nodejs_sitelib}/%{srcname} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check mocha %endif %files %doc README.md %license LICENSE %{nodejs_sitelib}/%{srcname} %changelog * Thu Nov 19 2015 Piotr Popieluch - 1.2.0-2 - Add BR deep-equal - Disable tests because of circular dependency * Sat Oct 24 2015 Piotr Popieluch - 1.2.0-1 - Initial package