# no tap? no problem %global bootstrap 1 Name: nodejs-optimist Version: 0.3.5 Release: 1%{?dist} Summary: Light-weight option parsing for Node.js BuildArch: noarch Group: System Environment/Libraries # no license file included; package.json says "MIT/X11" License: MIT/X11 URL: http://github.com/substack/node-optimist Source0: http://registry.npmjs.org/optimist/-/optimist-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: nodejs-devel %if !0%{?bootstrap} BuildRequires: npm(tap) BuildRequires: npm(hashish) %endif %description Light-weight option parsing with an argv hash. No optstrings attached. %prep %setup -q -n package %build #nothing to do %install rm -rf %buildroot mkdir -p %{buildroot}%{nodejs_sitelib}/optimist cp -pr package.json index.js x.js %{buildroot}%{nodejs_sitelib}/optimist %if !0%{?bootstrap} %check %nodejs_tap test/*.js %endif %clean rm -rf %buildroot %files %defattr(-,root,root,-) %{nodejs_sitelib}/optimist %doc LICENSE README.markdown example %changelog * Fri Jan 18 2013 T.C. Hollingsworth - 0.3.5-1 - initial package generated by npm2rpm