Name: opener Version: 1.3.0 Release: 2%{?dist} Summary: Opens stuff, like webpages and files and executables BuildArch: noarch Group: System Environment/Libraries License: WTFPL URL: https://github.com/domenic/opener Source0: http://registry.npmjs.org/opener/-/opener-1.3.0.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: nodejs-devel %description Opens stuff, like webpages and files and executables, cross-platform. %prep %setup -q -n package %build #nothing to do %install rm -rf %buildroot mkdir -p %{buildroot}%{nodejs_sitelib}/opener cp -pr package.json opener.js README.md %{buildroot}%{nodejs_sitelib}/opener mkdir -p %{buildroot}%{_bindir} ln -sf ../lib/node_modules/opener/opener.js %{buildroot}%{_bindir}/opener %clean rm -rf %buildroot %files %defattr(-,root,root,-) %{nodejs_sitelib}/opener %{_bindir}/opener %doc LICENSE.txt %changelog * Tue Jan 08 2013 T.C. Hollingsworth - 1.3.0-2 - add missing build section * Mon Dec 31 2012 T.C. Hollingsworth - 1.3.0-1 - initial package generated by npm2rpm