This software is a Perl module packager that enables users to easily package and distribute their Perl modules. It allows for easy management of dependencies and versioning, thus simplifying the process of distributing Perl modules.
The syntax for CPAN2RPM accommodates multiple distribution names, where each name can take one of four different forms. Firstly, it can take a CPAN module name like XML::Simple. The script will scan search.cpan.org to identify and determine the latest distribution if a module name is passed. In case there is no precise match, the CPAN module is utilized to make this determination. If you have not yet configured this module, look at the instructions in the REQUIREMENTS section for further guidance.
Secondly, it can take a URL (both http:// and ftp:// style locators) to download the necessary tarball. In this and the preceding case, automatic download of the required tarball is performed. The tarball will be left in the SOURCES directory.
Thirdly, it can take a path to a tarball like /tmp/XML-Simple-1.05.tar.gz. In this case, the specified tarball will be copied to the SOURCES directory.
Lastly, it can take a directory path. The directory provided must contain a Makefile.PL. If the user intends to create a package from a directory, the program executes the following commands: perl Makefile.PL, make, make dist in that directory to create the tarball required for package creation.
The SYNOPSIS of CPAN2RPM facilitates the download of the tarball from CPAN and generation of RPM package, its source package, and the specfile. It can also install from a URL, create a package out of the current directory, and create a list of stored packages in a file.
Overall, CPAN2RPM is an excellent tool for creating RPMs for Perl modules, and it is highly recommended.
Version 2.028: N/A