module documentation

Build an RPM package out of a Git repository

Exception GbpAutoGenerateError Undocumented
Function build_parser Construct config/option parser
Function create_packaging_tag Create a packaging/release Git tag
Function disable_hooks Disable all hooks (except for builder)
Function get_current_branch Get the currently checked-out branch
Function get_tree Get/create a tree-ish to be used for exporting and diffing. Accepts special keywords for git index and working copies.
Function get_upstream_tree Determine the upstream tree from the given options
Function get_vcs_info Get the info for spec vcs tag
Function git_archive Create a compressed orig tarball in output_dir using git_archive
Function git_archive_build_orig Build orig tarball using git-archive
Function is_native Determine whether a package is native or non-native
Function main Entry point for gbp-buildpackage-rpm
Function makedir Create directory
Function packaging_tag_data Compose packaging tag name and msg
Function parse_args Parse config and command line arguments
Function prepare_upstream_tarball Make sure we have an upstream tarball
Function pristine_tar_build_orig Build orig using pristine-tar
Function setup_builder Setup args and options for builder script
Function setup_mock setup everything to use gbp-builder-mock
def build_parser(name, prefix=None, git_treeish=None):

Construct config/option parser

def create_packaging_tag(repo, commit, name, version, options):

Create a packaging/release Git tag

def disable_hooks(options):

Disable all hooks (except for builder)

def get_current_branch(repo):

Get the currently checked-out branch

def get_tree(repo, tree_name):

Get/create a tree-ish to be used for exporting and diffing. Accepts special keywords for git index and working copies.

def get_upstream_tree(repo, version, options):

Determine the upstream tree from the given options

def get_vcs_info(repo, treeish):

Get the info for spec vcs tag

def git_archive(repo, spec, output_dir, treeish, prefix, comp, with_submodules):

Create a compressed orig tarball in output_dir using git_archive

def git_archive_build_orig(repo, spec, output_dir, options):

Build orig tarball using git-archive

Parameters
repo:RpmGitRepositoryour git repository
spec:SpecFilespec file of the package
output_dir:Strwhere to put the tarball
options:dict of optionsthe parsed options
Returns
strthe tree we built the tarball from
def is_native(repo, options):

Determine whether a package is native or non-native

def main(argv):

Entry point for gbp-buildpackage-rpm

def makedir(path):

Create directory

def packaging_tag_data(repo, commit, name, version, options):

Compose packaging tag name and msg

def parse_args(argv, prefix, git_treeish=None):

Parse config and command line arguments

def prepare_upstream_tarball(repo, spec, options, output_dir):

Make sure we have an upstream tarball

def pristine_tar_build_orig(repo, orig_file, output_dir, options):

Build orig using pristine-tar

def setup_builder(options, builder_args):

Setup args and options for builder script

def setup_mock(options):

setup everything to use gbp-builder-mock