RPM::Spec(3)

NAME
RPM::Spec

DESCRIPTION
An object to handle operation around specs file

FUNCTIONS

  new($specfile, %options)
Create a new RPM::Spec object over $specfile spec file.

Optional options are:

force Don't check all sources files exists
passphrase The passphrase to use to sign rpm after build
anyarch Don't check architecture compatibility
verify
root Root directory to use to build the spec file

  srcheader
Return a RPM::Header object about the future source rpm

  binheader
Return an array of RPM::Header object about future binaries rpms

  srcrpm
Return the full path where srcrpm will located after build

  binrpm
Return an array containing path where binaries rpms will be located after build

  check
Perform build dependencies check, return undef if everythings is fine, or a RPM::Problems object containing list of issue.

  build( $flags )
Build rpms from the specfile. $flags is either an integer, either an array ref of build step to perform.

  specfile
Return the specfile location.

  sources
Return an array listing sources included in the specfile.

  sources_url
Return an array listing sources url included in the specfile.

  icon
Return icon filename if included in the specfile.

  icon_url
Return icon url if included in the specfile.

AUTHOR
Olivier Thauvin <nanardon@nanardon.zarb.org>

LICENSE
This software is under GPL, refer to rpm license for details.