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 me@domain /root/.cpan/sources/<package>.tar.gz

This page is referenced in:

  • HOWTONov 18th 2006