Name: nodejs-bindings Version: 1.0.0 Release: 1%{?dist} Summary: Helper module for loading a native module's .node file BuildArch: noarch Group: System Environment/Libraries #the MIT license is specified and included in README.md License: MIT URL: https://github.com/TooTallNate/node-bindings Source0: http://registry.npmjs.org/bindings/-/bindings-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: nodejs-devel %description Throughout the course of Node's native addon history, addons have ended up being compiled in a variety of different places, depending on which build tool and which version of node was used. To make matters worse, now the gyp build tool can produce either a Release or Debug build, each being built into different locations. This module checks all the possible locations that a native addon would be built at, and returns the first one that loads successfully. %prep %setup -q -n package %build #nothing to do %install rm -rf %buildroot mkdir -p %{buildroot}%{nodejs_sitelib}/bindings cp -pr package.json bindings.js %{buildroot}%{nodejs_sitelib}/bindings %clean rm -rf %buildroot %files %defattr(-,root,root,-) %{nodejs_sitelib}/bindings %doc README.md %changelog * Mon Jan 21 2013 T.C. Hollingsworth - 1.0.0-1 - initial package generated by npm2rpm