How to generate RPM files of Perl CPAN modules:


Install the required software:

# apt-get install perl-RPM-Specfile

Get the module from CPAN:

cpan> get <package>
cpan> exit

Flute it:

# cpanflute2  --noarch --release rh9 --buildall --email [email protected] /root/.cpan/sources/<package>.tar.gz