The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Magpie - Mageia Perl Integration Easy

VERSION

version 1.110471

DESCRIPTION

CPAN holds a lot of great modules - but it can be difficult for the user to install if she's not familiar with the process. Therefore, Linux distribution usually package quite a lot of them, for them to be easily installable.

Mageia Linux is no exception, and ships more than 2500 packages holding Perl distributions (at the time of writing). Maintaining those packages is a daunting task - and cannot be done only by hand.

This distribution is therefore a set of scripts helping maintaining Perl packages within Mageia. They can be somehow coupled or used independently.

Even if they are Mageia-centered, and Perl-centered, some of those tools can be used also by to maintain non-Perl packages, or by other Linux distributions than Mageia. I'd like to hear from you in this case! :-)

ATTRIBUTES

logger

The Log::Dispatchouli object used for logging.

METHODS

log

log_debug

log_fatal

    $magpie->log( ... );
    $magpie->log_debug( ... );
    $magpie->log_fatal( ... );

Log stuff at various verbose levels. Uses Log::Dispatchouli underneath - refer to this module for more information.

bswait

    my $sleep = $magpie->bswait( $opts );

Check Mageia build-system and fetch the wait hint. Sleep according to this hint, unless $opts->{nosleep} is true.

Return the number of recommended number of seconds to sleep.

checkout

    my $pkgdir = $magpie->checkout( $pkg [, $directory] );

Check out $pkg under $directory (or current directory if no directory specified). Refresh the checkout if it already exists.

Return the directory in which the checkout is located.

fixspec

    $magpie->fixspec;

Fix the spec file to match a set of rules. Make sure buildrequires are correct.

update

    $magpie->update;

Try to update the current checked-out package to its latest version, if there's one available.

SEE ALSO

You can find more information on this module at:

AUTHOR

  Jerome Quelin <jquelin@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Jerome Quelin.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.