%{?nodejs_find_provides_and_requires} %global packagename http-signature Name: nodejs-http-signature Version: 1.2.0 Release: 1%{?dist} Summary: Reference implementation of Joyent's HTTP Signature scheme. License: MIT URL: https://github.com/joyent/node-http-signature/ Source0: http://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging BuildRequires: npm(assert-plus) BuildRequires: npm(jsprim) BuildRequires: npm(sshpk) Provides: npm(%{packagename}) %description Reference implementation of Joyent's HTTP Signature scheme. %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} %check %{nodejs_symlink_deps} --check %{__nodejs} -e 'require("./")' %files %doc %license %{nodejs_sitelib}/%{packagename} %changelog