RPM::MetaCPAN - Manage RPM specs using MetaCPAN
#!/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));
RPM::MetaCPAN is an RPM spec management tool using MetaCPAN::Walker. It aids in generating and maintaining CPAN dependencies as RPMs.
The filename of the RPM::MetaCPAN configuration file.
The content of the RPM::MetaCPAN configuration as a raw perl data structure. It contains parameters passed to the implementing objects.
The filename of the distribution configuration.
The RPM::MetaCPAN::DistConfig object containing the distribution configuration.
Set to override the value stored in the configuration.
Malcolm Studd <mestudd@gmail.com>
Copyright 2015- Malcolm Studd
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.