npm currently has broken dependencies in EPEL 6 because of what
appears to be a rel-eng issue:
Ordinarily I'd unpush that update but I'd rather wait for rel-eng's
advice since something strange seems to have gone wrong here.
I need to package the xmlbuilder module (it's a new dependency for
another module I own) but packaging it has raised some interesting
guidelines tell us to use as the source, is compiled from coffee script
and also doesn't include any source.
We've worked around similar situations in the past by having a second
source archive which contains the tests pulled from github, but in this
case there's an extra issue - the tests work on the original coffee
In any case the coffee script is the real source, so shouldn't I really
be packaging the github tar ball and building the js from that as part
of the rpm?
Tom Hughes (tom(a)compton.nu)
Just to let you know of "njs2rpm", a NodeJS to RPM converter that tries to follow the RH/Fedora packaging guidelines and more!
See the project page for more relevant info.
All made in Bash, without weird dependencies and (.spec) template based.
- supports RHEL6 and RHEL5/Centos5 (yes, RHEL5!) - runs and build RPM packages on these systems
- simple creation of RPM obtaining sources directly from NPM Registry, of any package and version available!
- does not require Perl, Python, Ruby and a bulk of dependencies in order to run! It's made in shell script: "BASH" to the rescue!
- supports NodeJS packaging guidelines used in Fedora/EPEL (and upcoming RedHat versions) for building clean ("single") packages
- supports the creation of "bundle" packages with all dependencies pre-bundled, overcoming the "limitation" of some modules with dependency problems!
- supports RPM (or .spec) creation based on template files in order to customized the generated RPM
njs2rpm uglify-js 2.4.1 1 single rpm
njs2rpm uglify-js 2.4.1 1 bundle rpm
njs2rpm express 3.4.4 1 bundle spec mytemplate.n2r
PS: a .spec is provided along with a Makefile and a "mock" script, whatever you prefer.
Just to let you know of my work on building NodeJS for RHEL5 (or similar) distributions.
Please checkout https://github.com/sfreire/nodejs-rpm-centos5/ .
It is based on previous work by the community but I rearranged it in order to be very similar to the EPEL 6 RPMs available in terms of packages and dependencies provided