%{?nodejs_find_provides_and_requires} %global packagename registry-auth-token Name: nodejs-registry-auth-token Version: 3.3.2 Release: 1%{?dist} Summary: Get the auth token set for an npm registry (if any) License: MIT URL: https://github.com/rexxars/registry-auth-token#readme Source0: http://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging BuildRequires: npm(rc) BuildRequires: npm(safe-buffer) Provides: npm(%{packagename}) %description Get the auth token set for an npm registry (if any) %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