[TriLUG] Perl modules and RPMs

Mike Broome mbroome at employees.org
Sun Nov 17 20:42:11 EST 2002


On Sun, Nov 17, 2002 at 02:44:27PM -0500, Tanner Lovelace wrote:
> On Sun, 2002-11-17 at 12:04, Mike Broome wrote:
> > Ideally, these modules should be known and managed by rpm.  Is there a
> > straightforward way to do that?  Do I need to hand-roll a spec file for
> > each one?  Or is there some standard way to create an rpm from a CPAN
> > module then install it?
> 
> If you want to do them with rpm, there is a utility called
> cpan2rpm that will download the module and create an rpm
> of it that you can then install.  You can find a copy of it at:
> 
> http://www.trilug.org/~lovelace/rpms/wtl/noarch/cpan2rpm-1.50-5wtl.noarch.rpm
> 
> That was compiled under Mandrake, but for Redhat, you can just 
> compile the src.rpm yourself.  Find it at:
> 
> http://www.trilug.org/~lovelace/rpms/wtl/SRPMS/cpan2rpm-1.50-5wtl.src.rpm
> 
> (Use rpmbuild --rebuild <rpmfile> to rebuild it.)
> 
> Alternatively, perl modules are one of the few things that
> I can see an argument for for not placing under rpm control.
> As long as they are kept separate under something like /usr/local,
> then the normal CPAN stuff should work fine except for a few
> rpm requirements issues.
> 
> Cheers,
> Tanner

Thanks, Tanner!  This sounds like just what I've been looking for.

Mike

-- 
Mike Broome
mbroome(at)employees.org



More information about the TriLUG mailing list