%global module_name silent-npm-registry-client
Name: nodejs-%{module_name}
Version: 0.0.1
Release: 1%{?dist}
Summary: Npm registry client that doesn't spam stdout/stderr
License: MIT
URL: https://github.com/juliangruber/%{module_name}
Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(npm-registry-client)
BuildRequires: npm(xtend)
%description
%{summary}.
%prep
%setup -q -n package
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%files
%doc README.md example
%{nodejs_sitelib}/%{module_name}
%changelog
* Fri Sep 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.1-1
- Initial packaging