%{?nodejs_find_provides_and_requires} %global packagename node-uuid %global enable_tests 1 Name: nodejs-node-uuid Version: 1.4.3 Release: 1%{?dist} Summary: Rigorous implementation of RFC4122 (v1 and v4) UUIDs License: MIT URL: https://github.com/broofa/node-uuid.git Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} #BuildRequires: %endif Requires: nodejs %description Rigorous implementation of RFC4122 (v1 and v4) UUIDs. %prep %setup -q -n package %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr *.json bin/ *.js \ %{buildroot}%{nodejs_sitelib}/%{packagename} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check %__nodejs test/test.js %endif %files %{!?_licensedir:%global license %doc} %doc README.md %license LICENSE.md %{nodejs_sitelib}/%{packagename} %changelog * Thu Oct 29 2015 Jared Smith - 1.4.3-1 - Initial packaging