Skip to content

mestudd/RPM-MetaCPAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

RPM::MetaCPAN - Manage RPM specs using MetaCPAN

SYNOPSIS

#!/usr/bin/perl
use MetaCPAN::Walker;
use MetaCPAN::Walker::Action::WriteSpec;
use MetaCPAN::Walker::Local::RPMSpec;
use MetaCPAN::Walker::Policy::DistConfig;
use RPM::MetaCPAN;

my $rpm = RPM::MetaCPAN->new_with_options;

my %params = (
    %{ $rpm->configuration },
    dist_config => $rpm->dist_config,
);

my $walker = MetaCPAN::Walker->new(
    action => MetaCPAN::Walker::Action::WriteSpec->new(%params),
    local  => MetaCPAN::Walker::Local::RPMSpec->new(%params),
    policy => MetaCPAN::Walker::Policy::DistConfig->new(%params),
);

$walker->walk_from_modules(qw(namespace::clean Test::Most));

DESCRIPTION

RPM::MetaCPAN is an RPM spec management tool using MetaCPAN::Walker. It aids in generating and maintaining CPAN dependencies as RPMs.

Attributes

config_file

The filename of the RPM::MetaCPAN configuration file.

configuration

The content of the RPM::MetaCPAN configuration as a raw perl data structure. It contains parameters passed to the implementing objects.

dist_file

The filename of the distribution configuration.

dist_config

The RPM::MetaCPAN::DistConfig object containing the distribution configuration.

wait_spec

Set to override the value stored in the configuration.

AUTHOR

Malcolm Studd <mestudd@gmail.com>

COPYRIGHT

Copyright 2015- Malcolm Studd

LICENSE

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

SEE ALSO

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages