%{?nodejs_find_provides_and_requires} %global packagename hash.js Name: nodejs-hash-dot-js Version: 1.1.5 Release: 1%{?dist} Summary: Various hash functions that could be run by both browser and node License: MIT URL: https://github.com/indutny/hash.js Source0: http://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging BuildRequires: npm(inherits) BuildRequires: npm(minimalistic-assert) Provides: npm(%{packagename}) %description Various hash functions that could be run by both browser and node %prep %setup -n "package" rm -Rf node_modules %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr * %{buildroot}%{nodejs_sitelib}/%{packagename} %{nodejs_symlink_deps} %files %doc %license %{nodejs_sitelib}/%{packagename} %changelog