• rpmbuild with no source file?

    From John Gordon@110:300/11 to All on Wed Apr 2 19:07:18 2014
    Keywords: rpm, rpmbuild

    As I understand it, the purpose of the Source: header in an rpm spec file
    is to specify a file (often a tar archive) that is used as the package
    payload. This source file is typically generated beforehand, perhaps by
    make, and then rpmbuild is executed afterwards.

    I'm wondering if it's possible to cut make out of the picture and just
    use rpmbuild. Can the source file be created as part of the rpmbuild
    process, perhaps in the %build or %install step in the spec file?

    If so, what does one use as the Source: header? I can't just leave it
    blank, because rpmbuild complains. Is there a way to tell rpm that the
    payload file is generated from within the spec file, and not supplied externally?

    --
    John Gordon Imagine what it must be like for a real medical doctor to gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'.


    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: PANIX Public Access Internet and UNIX, NYC (110:300/11@linuxnet)
  • From Robert Nichols@110:300/11 to All on Thu Apr 3 13:58:54 2014
    On 04/02/2014 02:07 PM, John Gordon wrote:
    As I understand it, the purpose of the Source: header in an rpm spec file
    is to specify a file (often a tar archive) that is used as the package payload. This source file is typically generated beforehand, perhaps by make, and then rpmbuild is executed afterwards.

    I'm wondering if it's possible to cut make out of the picture and just
    use rpmbuild. Can the source file be created as part of the rpmbuild process, perhaps in the %build or %install step in the spec file?

    If so, what does one use as the Source: header? I can't just leave it
    blank, because rpmbuild complains. Is there a way to tell rpm that the payload file is generated from within the spec file, and not supplied externally?

    Just omit the "Source:" header entirely and do whatever is needed to create
    the build files in the %prep section.

    See http://corefonts.sourceforge.net/msttcorefonts-2.5-1.spec for an
    example.

    --
    Bob Nichols AT comcast.net I am "RNichols42"

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: Exiguous (110:300/11@linuxnet)
  • From John Gordon@110:300/11 to All on Thu Apr 3 16:45:20 2014
    In <lhjpeu$5s7$1@omega-3a.local> Robert Nichols <SEE_SIGNATURE@localhost.localdomain.invalid> writes:

    Just omit the "Source:" header entirely and do whatever is needed to create the build files in the %prep section.

    See http://corefonts.sourceforge.net/msttcorefonts-2.5-1.spec for an
    example.

    Thanks Bob!

    --
    John Gordon Imagine what it must be like for a real medical doctor to gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'.


    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: PANIX Public Access Internet and UNIX, NYC (110:300/11@linuxnet)