Name: nodejs-burrito Version: 0.2.12 Release: 4%{?dist} Summary: Wrap up expressions with a trace function while walking the AST BuildArch: noarch Group: System Environment/Libraries #no license file included, "BSD" indicated in package.json License: BSD URL: https://github.com/substack/node-burrito Source0: http://registry.npmjs.org/burrito/-/burrito-%{version}.tgz #to satisfy the BSD requirement that the text of the license be included, we #include this copy of the 3-clause BSD as used in one of the author's projects. Source1: https://raw.github.com/substack/lambdascape/master/LICENSE BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: nodejs-devel #BuildRequires: npm(tap) %description Burrito makes it easy to do crazy stuff with the JavaScript AST. This is useful if you want to roll your own stack traces or build a code coverage tool. %prep %setup -q -n package %nodejs_fixdep uglify-js '~1.3.4' %nodejs_fixdep traverse '~0.6.3' cp -p %{SOURCE1} LICENSE %build #nothing to do %install rm -rf %buildroot mkdir -p %{buildroot}%{nodejs_sitelib}/burrito cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/burrito %nodejs_symlink_deps ln -sf %{nodejs_sitelib}/uglify-js1 \ %{buildroot}%{nodejs_sitelib}/burrito/node_modules/uglify-js #recursive deps are recursive #%%check #%%tap test/*.js %clean rm -rf %buildroot %files %defattr(-,root,root,-) %{nodejs_sitelib}/burrito %doc README.markdown example LICENSE %changelog * Tue Mar 19 2013 T.C. Hollingsworth - 0.2.12-4 - include a LICENSE file - fix typo in Description * Sat Mar 16 2013 T.C. Hollingsworth - 0.2.12-3 - fix deps for real * Wed Feb 13 2013 T.C. Hollingsworth - 0.2.12-2 - fix uglify-js and traverse deps * Tue Jan 08 2013 T.C. Hollingsworth - 0.2.12-1 - initial package generated by npm2rpm