Name: nodejs-traverse Version: 0.6.3 Release: 2%{?dist} Summary: Traverse and transform objects BuildArch: noarch Group: System Environment/Libraries License: MIT URL: https://github.com/substack/js-traverse Source0: http://registry.npmjs.org/traverse/-/traverse-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: nodejs-devel #BuildRequires: npm(tap) %description Traverse and transform objects by visiting every node on a recursive walk. %prep %setup -q -n package #fix permissions on stuff that goes in %%doc chmod 0644 examples/* %build #nothing to do %install rm -rf %buildroot mkdir -p %{buildroot}%{nodejs_sitelib}/traverse cp -pr package.json fail.js index.js %{buildroot}%{nodejs_sitelib}/traverse %nodejs_symlink_deps #recursive deps are recursive #%%check #%%tap test/*.js %clean rm -rf %buildroot %files %defattr(-,root,root,-) %{nodejs_sitelib}/traverse %doc examples LICENSE README.markdown %changelog * Tue Jan 15 2013 T.C. Hollingsworth - 0.6.3-2 - fix permissions on examples * Tue Jan 08 2013 T.C. Hollingsworth - 0.6.3-1 - initial package generated by npm2rpm