%{?nodejs_find_provides_and_requires} %global packagename http-errors %global enable_tests 1 Name: nodejs-http-errors Version: 1.3.1 Release: 1%{?dist} Summary: Create HTTP errors for Express, Koa, Connect, etc. with ease License: MIT URL: https://github.com/jshttp/http-errors Source0: https://github.com/jshttp/http-errors/archive/1.3.1.tar.gz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging BuildRequires: npm(statuses) BuildRequires: npm(inherits) %if 0%{?enable_tests} BuildRequires: mocha %endif Requires: nodejs %description Create HTTP errors for Express, Koa, Connect, etc. with ease %prep %setup -q -n %{packagename}-%{version} %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr package.json *.js \ %{buildroot}%{nodejs_sitelib}/%{packagename} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check /usr/bin/mocha -R spec %endif %files %doc README.md HISTORY.md %license LICENSE %{nodejs_sitelib}/%{packagename} %changelog * Wed Oct 7 2015 Jared Smith - 1.3.1-1 - Initial packaging