Re: Where do I get info on how a rpm (httpd) is build?

From: Jay Turner (jkt_at_redhat.com)
Date: 02/11/04

  • Next message: Bob Chiodini: "Re: Upgraded kernel - much confusion!"
    To: fedora-list@redhat.com
    Date: Wed, 11 Feb 2004 13:23:57 -0500
    
    

    On Wed, Feb 11, 2004 at 10:12:48AM -0500, John Imholz wrote:
    > >You can always fetch the SRC.RPM package and inspect the spec file. All
    > >instructions how the source code should builld and included additional
    > >patches are to be found inside this file.
    > >
    > >Alexander
    >
    > Thanks.
    >
    > 1. I guess I must assume that RedHat follows those instructions (and
    > defaults)? Seems like there should be some documentation on what they did,
    > somewhere.
    >
    > 2. BTW what do you use to inspect the srpm (rpm?)

    While the .spec file is text in nature, it isn't a set of instructions as
    you would normally think of one. Instead, it's actually a set of
    instructions to RPM on how to build and package the particular piece of
    software (configure, make, make check, make install.) So, by looking at
    the .spec file for a particular Red Hat supplied package, you can not only
    see exactly what steps Red Hat used in order to compile a particular set of
    binaries, but you can also make changes to the source code for yourself,
    then utilize the Red Hat supplied .spec file in order to build a new
    package, with your changes incorporated.

    As for what to use to inspect the SRPM, there are a couple of options.
    First, you can just install the SRPM package, which will put the source
    code and any patches in the /usr/src/redhat/SOURCES directory and the SPEC
    file in the /usr/src/redhat/SPECS directory. Then you can use your
    favorite text viewer/editor to view the .spec file. Or you can install a
    tool such as "mc" which understands RPMs and can pull them apart and
    display the internals without having to actually install the package
    itself.

    - jkt

    -- 
    --*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*
    Jay Turner, QA Technical Lead      jkt@redhat.com             Red Hat, Inc. 
            Reality is merely an illusion, albeit a very persistent one.
                                                       - Albert Einstein
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Bob Chiodini: "Re: Upgraded kernel - much confusion!"

    Relevant Pages

    • RV: How can I install a Agere NIC in my laptop?
      ... The solution for this request for info say to me fix a spec file or post ... Package already exists: %package debuginfo ... BuildRequires: kernel-source kernel-syms ... Kernelmodule for Agere ET131x network cards ...
      (Fedora)
    • Re: building devel packages
      ... Have you tried rpmbuild? ... If I was building the package, and the source was a .src.rpm or .spm, ... If the spec file has the required bits to build a devel package, ...
      (alt.os.linux.suse)
    • Re: [opensuse] Simple source rpm as an example
      ... Otherwise writing a spec file saves you work as ... which I just fill in the required bits to make the package build. ... build using an 11.1 build environment. ... Once the test build is successful, ...
      (SuSE)
    • Re: Program to produce spec files
      ... >> Go back and move the files into the right section of the spec file you ... Perhaps the package you're building does not support DESTDIR ... clobber any existing root-owned files when you try the install. ...
      (Fedora)
    • Re: Where do I get info on how a rpm (httpd) is build?
      ... > You can always fetch the SRC.RPM package and inspect the spec file. ... > instructions how the source code should builld and included additional ... I guess I must assume that RedHat follows those instructions (and ...
      (Fedora)