%global enable_tests 1 %global srcname util Name: nodejs-%{srcname} Version: 0.10.3 Release: 1%{?dist} Summary: Node.JS util module License: MIT Group: System Environment/Libraries URL: https://github.com/defunctzombie/node-util Source0: http://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(inherits) %endif %description node.js util module as a module. %prep %setup -q -n package %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} cp -pr package.json util.js support/ %{buildroot}%{nodejs_sitelib}/%{srcname} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check %{__nodejs} test/node/*.js %endif %files %doc README.md LICENSE %{nodejs_sitelib}/%{srcname} %changelog * Tue Nov 18 2014 Piotr Popieluch - 0.10.3-1 - Initial package