Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Where can I find the spec file for the Perl RPM?

by Anonymous Monk
on Jan 22, 2010 at 22:52 UTC ( [id://819071]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi there Monks,

I need to be able to encapsulate the results of installing Perl from source ...

$ wget http://www.cpan.org/src/5.0/perl-5.10.1.tar.gz $ tar -xzf perl-5.10.1.tar.gz $ cd perl-5.10.1 $ sh Configure -Dcc=gcc -Dprefix=/some/where/perl -de $ sudo make $ sudo make test $ sudo make install
... into any RPM.

Does any monk know where I can find a ".spec" file?

Thanks!

Replies are listed 'Best First'.
Re: Where can I find the spec file for the Perl RPM?
by shmem (Chancellor) on Jan 22, 2010 at 23:20 UTC

    Get cpanspec. Calling it with a CPAN tgz will build the specfile for that package. That's for Fedora, but it will work for other GNU/Linux distros as well, twiddling it a bit. You might want to build cpanspec with itself into a RPM ;-)

    Then there is also cpan2rpm. But cpanspec is more up to date.

    update: for perl itself, all RPM based GNU/Linux distributions have the source RPM package in their repositories. It includes the spec file. Just get it and install it with rpm -i. Another way to do it: rpm2cpio perl-5.8.8-27.el5.src.rpm | cpio -i perl.spec.To extract the complete source RPM (spec file, tar ball, patches, scripts) just omit the perl.spec.

Re: Where can I find the spec file for the Perl RPM?
by saberworks (Curate) on Jan 23, 2010 at 00:44 UTC
    If you have the perl source rpm you can just extract the spec file (according to this forum post, although I've not tried it myself):

    You can extract the spec file from a source rpm file (some times a bin +ary rpm file), using command: rpm2cpio {FullNameOfRPM} | cpio -iumd {NameOfRPM.spec}
    Isn't Fedora open source? Can't you just find where their repository is and do a checkout?
Re: Where can I find the spec file for the Perl RPM?
by Anonymous Monk on Jan 22, 2010 at 23:24 UTC
      Thanks anonymous monk. I think this is more what I am looking for. I want to make an RPM that will install Perl not Perl Modules. I am wondering if there is an "official" spec file already out there somewhere that is being used for the Redhat perl RPM that I can use as a starting point?
        Seems like that is a question for RedHat :)
Re: Where can I find the spec file for the Perl RPM?
by phenom (Chaplain) on Jan 23, 2010 at 13:51 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://819071]
Approved by SilasTheMonk
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-23 16:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found