I made a little tool to ease the packaging of nodejs extensions, much like py2pack and gem2rpm. It’s a python script that uses Jinja2 templates to download, analyze and produce properly filled SPECs for the nodejs modules. It should work fine for most extensions. Only the ones that require native compiling will require some manual editing.
The package is located here: https://build.opensuse.org/package/show/home:emendonca/nodejs2rpm
And the source code is on Github: https://github.com/doccaz/nodejs2rpm
Could you guys take a look at it? Any suggestions are welcome.
-- Erico Mendonça Dedicated Support Engineer SUSE