#!/usr/bin/env perl
use strict;
use warnings;
use FindBin::libs;
use CPAN::Packager::Script;
use Log::Log4perl qw(:easy);
main();
exit;
sub main {
run();
}
sub run {
my $script = CPAN::Packager::Script->new_with_options;
$script->run;
}
__END__
=head1 NAME
cpan-packager - create redhat/debian packages from CPAN distributions
=head1 SYNOPSIS
cpan-packager
--module The module name ex) Test::Exception
--builder RPM or Deb
--conf The CPAN::Packager configuration file path.
[--verbose] Emit additional information and diagnostics.
[--always-build] Always build CPAN modules even if the module is already installed.
[--modulelist] The path to a file containing the list of modules
[--help]
Example
$ cpan-packager --module Test::Exception --builder RPM --conf \
conf/config-deb.yaml --verbose
Usage
See perldoc CPAN::Packager::Manual.
=head1 User Manual
See L<CPAN::Packager::Manual>.
=head1 DESCRIPTION
cpan-packager creates RPM and Deb packages of CPAN distributions. Given a
module name, cpan-packager will automatically analyze dependencies, download,
build, test, provision, and install packages.
=head1 AUTHOR
Takatoshi Kitano E<lt>kitano.tk@gmail.comE<gt>
=head1 LICENSE
This library is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
=cut