Blob Blame History Raw
Name:           nodejs-bunker
Version:        0.1.2
Release:        1%{?dist}
Summary:        Code coverage in native JavaScript
BuildArch:      noarch

Group:          System Environment/Libraries
#no license file included, "MIT/X11" indicated in package.json
License:        MIT
URL:            https://github.com/substack/node-bunker
Source0:        http://registry.npmjs.org/bunker/-/bunker-%{version}.tgz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  nodejs-devel
#BuildRequires:  npm(tap)

%description
Bunker is a module to calculate code coverage written in native JavaScript.
It uses AST trickery with the help of the nodejs-burrito package.

%prep
%setup -q -n package

%build
#nothing to do

%install
rm -rf %buildroot

mkdir -p %{buildroot}%{nodejs_sitelib}/bunker
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/bunker

%nodejs_symlink_deps

# recursive deps are recursive
#%%check
#%%tap test/*.js

%clean
rm -rf %buildroot

%files
%defattr(-,root,root,-)
%{nodejs_sitelib}/bunker
%doc README.markdown example

%changelog
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.2-1
- initial package generated by npm2rpm