diff --git a/.gitignore b/.gitignore index e69de29..9f77462 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/bunker-0.1.2.tgz diff --git a/nodejs-bunker.spec b/nodejs-bunker.spec new file mode 100644 index 0000000..59ee089 --- /dev/null +++ b/nodejs-bunker.spec @@ -0,0 +1,49 @@ +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 - 0.1.2-1 +- initial package generated by npm2rpm diff --git a/sources b/sources index e69de29..d6bba0d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +eaec3224714892d89ae85b2dd8076ea4 bunker-0.1.2.tgz