About a year ago, I was given the job of building a large number of perl
module RPMs on both RHEL5 and RHEL6. I started using cpan2rpm and
encountered a number of problems (primarily due to the fact that it
hasn't been active for quite a number of years) including:
lack of support for Build.PL modules
interactive Makefile.PL scripts cause it to hang
Anyway, after an attempt to modify it, I eventually decided to write my
own (heavily borrowing from the ideas in cpan2rpm, and also borrowing a
bit from cpanspec).
I appreciate the work that went into both these tools.
Anyway, I've been using cpantorpm now for a while and have built around
300 modules on RHEL5, 100 on RHEL6, and a couple (just to test it out)
on OpenSuSE 12.1. In theory, it should run on any RPM based
distribution, but since this is brand new, it's not tested on any but
the three distributions I mentioned.
I just put cpantorpm on CPAN and it should be available tomorrow.