%{?nodejs_find_provides_and_requires} %global fix_symlink_deps 1 %global packagename hmac-drbg Name: nodejs-hmac-drbg Version: 1.0.1 Release: 1%{?dist} Summary: Deterministic random bit generator (hmac) License: MIT URL: https://github.com/indutny/hmac-drbg#readme Source0: http://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging BuildRequires: npm(hash.js) BuildRequires: npm(minimalistic-assert) BuildRequires: npm(minimalistic-crypto-utils) Provides: npm(%{packagename}) %description Deterministic random bit generator (hmac) %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} %if 0%{?fix_symlink_deps} %{nodejs_symlink_deps} %endif %check %{nodejs_symlink_deps} --check %{__nodejs} -e 'require("./")' %files %doc %license %{nodejs_sitelib}/%{packagename} %changelog