Build an RPM package out of a Git repository

Class GbpAutoGenerateError Undocumented
Function makedir Create directory
Function git_archive Create a compressed orig tarball in output_dir using git_archive
Function prepare_upstream_tarball Make sure we have an upstream tarball
Function pristine_tar_build_orig Build orig using pristine-tar
Function get_upstream_tree Determine the upstream tree from the given options
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_current_branch Get the currently checked-out branch
Function get_vcs_info Get the info for spec vcs tag
Function git_archive_build_orig Build orig tarball using git-archive
Function is_native Determine whether a package is native or non-native
Function setup_builder Setup args and options for builder script
Function packaging_tag_data Compose packaging tag name and msg
Function setup_mock setup everything to use gbp-builder-mock
Function create_packaging_tag Create a packaging/release Git tag
Function disable_hooks Disable all hooks (except for builder)
Function build_parser Construct config/option parser
Function parse_args Parse config and command line arguments
Function main Entry point for gbp-buildpackage-rpm
def makedir(path):

Create directory

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

Create a compressed orig tarball in output_dir using git_archive

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 get_upstream_tree(repo, version, options):

Determine the upstream tree from the given options

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_current_branch(repo):

Get the currently checked-out branch

def get_vcs_info(repo, treeish):

Get the info for spec vcs tag

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

Build orig tarball using git-archive

Parametersrepoour git repository (type: RpmGitRepository)
specspec file of the package (type: SpecFile)
output_dirwhere to put the tarball (type: Str)
optionsthe parsed options (type: dict of options)
Returnsthe tree we built the tarball from (type: str)
def is_native(repo, options):

Determine whether a package is native or non-native

def setup_builder(options, builder_args):

Setup args and options for builder script

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

Compose packaging tag name and msg

def setup_mock(options):

setup everything to use gbp-builder-mock

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 build_parser(name, prefix=None, git_treeish=None):

Construct config/option parser

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

Parse config and command line arguments

def main(argv):

Entry point for gbp-buildpackage-rpm

API Documentation for git-buildpackage, generated by pydoctor at 2021-02-01 08:15:22.