dann / p5-cpan-packager

CPAN::Packager is a tool to help you make packages from perl modules on CPAN.

This URL has Read+Write access

name age message
file .ditz-config Sat Feb 21 10:28:27 -0800 2009 added tasks [dann]
file .gitignore Wed Feb 18 21:11:51 -0800 2009 initial commit [dann]
file .shipit Wed Feb 18 21:11:51 -0800 2009 initial commit [dann]
file Changes Mon Aug 31 07:21:18 -0700 2009 Checking in changes prior to tagging of version... [dann]
file MANIFEST.SKIP Wed Feb 18 21:11:51 -0800 2009 initial commit [dann]
file Makefile.PL Tue Oct 20 10:08:42 -0700 2009 added Makefile.PL to some modules which author ... [dann]
file README Fri Oct 23 09:25:20 -0700 2009 removed repository url because it is automatica... [dann]
directory bin/ Fri Oct 23 09:25:20 -0700 2009 removed repository url because it is automatica... [dann]
directory bugs/ Sat Feb 21 10:28:27 -0800 2009 added tasks [dann]
directory conf/ Sun Oct 25 20:41:31 -0700 2009 IO::Compress. [walf443]
directory lib/ Mon Oct 05 08:53:43 -0700 2009 use Makefile.PL if it exists. [dann]
directory t/ Wed Sep 02 22:13:55 -0700 2009 make downloader pluggable and added Fresh downl... [dann]
directory tools/ Fri Aug 28 22:37:34 -0700 2009 removed unused tool [dann]
directory xt/ Sat Aug 29 02:21:53 -0700 2009 added POD template [dann]
README
NAME
    cpan-packager - create redhat/debian packages from perl modules

SYNOPSIS
    case1: build a module

        sudo cpan-packager --module Test::Exception --builder Deb --conf conf/config.yaml --verbose

    case2: build multiple modules at a time

        sudo cpan-packager --modulelist modulelist.txt --builder RPM --conf conf/config.yaml --verbose

    options --module module name (required option) --builder Deb or RPM
    (optional. default is Deb) --conf configuration file path (required)
    --always-build always build cpan modules if module is aready installed
    (optional) --modulelist File containing a list of modules that should be
    built. (optional) --verbose print command result (optional)

    RPM/Deb Packages are generated at ~/.cpanpackager/{deb or rpm}

  Configuration location and schema
    config.yaml is located at github repo.

        See http://github.com/dann/cpan-packager/tree/master

    Please see the configuration schema if you want to write config your
    self. You can see schema like below.

        perldoc CPAN::Packager::Config::Schema

  Configure CPAN mirrors
    CPAN::Packager downloads modules from cpan_mirrors if you set CPAN
    mirror uri in your config.

        ---
        global:
          cpan_mirrors:
            - http://ftp.funet.fi/pub/languages/perl/CPAN/
            - file:///home/dann/minicpan

  Use cpan-packager with minicpan
    You can use minicpan with CPAN::Packager. At first, you mirror CPAN
    modules with minicpan.

        minicpan -r http://ftp.funet.fi/pub/languages/perl/CPAN/ -l ~/minicpan

    Set cpan mirrors uri in your config if you want to use minicpan. after
    that you just use cpan-packager ;)

        ---
        global:
          cpan_mirrors:
            - file:///home/dann/minicpan

  Additional setup (For debian users)
    Copy conf/debian/rules* to ~/.dh-make-perl directory. copying
    perllocal.pod is conflited if you dont do that.

DESCRIPTION
    cpan-packager will create the files required to build a debian or redhat
    source package out of a perl package. This works for most simple
    packages and is also useful for getting started with packaging perl
    modules. Given a perl package name, it can also automatically download
    it from CPAN.

BUGS
    Please report any bugs or feature requests to "<bug-CPAN-Packagerat
    rt.cpan.org>", or through the web interface at
    <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CPAN-Packager>. I will
    be notified, and then you’ll automatically be notified of progress on
    your bug as I make changes.

AUTHOR
    Takatoshi Kitano <kitano.tk@gmail.com>

LICENSE
    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.