%{?nodejs_find_provides_and_requires} Name: nodejs-npm-user-validate Version: 0.0.1 Release: 2%{?dist} Summary: Username, password, and e-mail validation for the npm registry BuildArch: noarch Group: Development/Libraries License: BSD URL: https://github.com/robertkowalski/npm-user-validate Source0: http://registry.npmjs.org/npm-user-validate/-/npm-user-validate-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: nodejs-devel BuildRequires: npm(tap) %description This library validates usernames, passwords, and e-mail addresses to the standards required by the npm registry. %prep %setup -q -n package %build #nothing to do %install rm -rf %buildroot mkdir -p %{buildroot}%{nodejs_sitelib}/npm-user-validate cp -pr npm-user-validate.js package.json %{buildroot}%{nodejs_sitelib}/npm-user-validate %nodejs_symlink_deps %check %nodejs_symlink_deps --check %tap test/*.js %clean rm -rf %buildroot %files %defattr(-,root,root,-) %{nodejs_sitelib}/npm-user-validate %doc README.md LICENSE %changelog * Thu May 30 2013 T.C. Hollingsworth - 0.0.1-2 - fix License tag * Thu May 30 2013 T.C. Hollingsworth - 0.0.1-1 - initial package