[TriLUG] Perl modules and RPMs
Tanner Lovelace
lovelace at wayfarer.org
Sun Nov 17 14:44:27 EST 2002
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
--
Tanner Lovelace | lovelace at wayfarer.org | http://wtl.wayfarer.org/
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
GPG Fingerprint = A66C 8660 924F 5F8C 71DA BDD0 CE09 4F8E DE76 39D4
GPG Key can be found at http://wtl.wayfarer.org/lovelace.gpg.asc
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
This would be a very good time to hang out with the Open Source
people, before they get formally reclassified as a national security
threat. -- Bruce Sterling
More information about the TriLUG
mailing list