Nico,

glad to hear you have a set of patches for this.  honestly I haven't had time to maintain this but I did open it up on github some time ago at:

https://github.com/ekkis/cpan2rpm

so if you'd like to integrate your changes with that, it will make it easier for others to collaborate.

- ekkis

On Oct 12, 2012, at 5:09 AM, Nico Kadel-Garcia wrote:

On Fri, Oct 12, 2012 at 4:55 AM, Kobus Bensch <kbensch@fullnet.co.uk> wrote:
Hi

I downloaded the software this morning and have so far not been able to
build a single rpm from any cpan module.

I've got some RPM building tools for it, with patches, at:

            https://github.com/nkadel/cpan2rpm-2.028-srpm

There are some particularly useful patches for more recent versions of
perl and RHEL 6 or Fedora.

I want to build Plack as an rpm so I run:
cpan2rpm Plack

-- cpan2rpm - Ver: 2.028 --
Upgrade check
Fetch: HTTP

-- module: Plack --
Using cached URL:
http://search.cpan.org//CPAN/authors/id/M/MI/MIYAGAWA/Plack-1.0005.tar.gz
Tarball found - not fetching
Metadata retrieval
Tarball extraction: [/root/rpmbuild/SOURCES/Plack-1.0005.tar.gz]
Unable to build module, the following dependencies have failed:
 Test::Requires >= 0
 Stream::Buffered >= 0.02
 Test::TCP >= 1.02
 File::ShareDir >= 1.00
 Hash::MultiValue >= 0.05
 URI >= 1.59
 parent >= 0
 Devel::StackTrace >= 1.23
 ExtUtils::MakeMaker >= 6.59
 HTTP::Body >= 1.06
 Filesys::Notify::Simple >= 0
 Devel::StackTrace::AsHTML >= 0.11
Stopped at /usr/bin/cpan2rpm line 491.

So, you're going to need to install things like the HTTP::Body, URI,
and other modules of a recent enough version, and install them as
RPM's.

So, if you're on an RHEL or CentOS or Scientific Linux system, use
something like this:

     yum install 'perl(HTTP::Body)'
     yum insall ''perl(ExtUtils::MakeMaker)'

etc., etc., etc. to get your dependencies.

Second, definitely apply my patches against cpan2rpm. and build
yourself a new RPM for cpan2rpm itself. The "Pod::Text" dependency for
cpan2rpm itself, for example, needs to be updated to "Pod::Parser".

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Cpan2rpm-general mailing list
Cpan2rpm-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cpan2rpm-general