Package gbp :: Package scripts :: Module buildpackage_rpm
[hide private]
[frames] | no frames]

Module buildpackage_rpm

run commands to build an RPM package out of a git repository

Classes [hide private]
  GbpAutoGenerateError
Error for tarball and patch-generation failures
Functions [hide private]
 
git_archive(repo, spec, output_dir, tmpdir_base, treeish, prefix, comp_level, with_submodules)
create a compressed orig tarball in output_dir using git_archive
 
prepare_upstream_tarball(repo, spec, options, output_dir)
Make sure we have an upstream tarball.
 
makedir(dir)
Create directory
 
pristine_tar_build_orig(repo, orig_file, output_dir, options)
build orig using pristine-tar
 
get_upstream_tree(repo, spec, options)
Determine the upstream tree from the given options
 
get_tree(repo, tree_name)
Get/create a tree-ish to be used for exporting and diffing.
 
get_current_branch(repo)
Get the currently checked-out branch
 
get_vcs_info(repo, treeish)
Get the info for spec vcs tag
 
guess_export_params(repo, options)
Get commit and tree from where to export packaging and patches
str
git_archive_build_orig(repo, spec, output_dir, options)
Build orig tarball using git-archive
 
export_patches(repo, spec, export_treeish, options)
Generate patches and update spec file
 
is_native(repo, options)
Determine whether a package is native or non-native
 
setup_builder(options, builder_args)
setup everything to use git-pbuilder
 
update_tag_str_fields(fields, tag_format_str, repo, commit_info)
Update string format fields for packaging tag
 
packaging_tag_name(repo, spec, commit_info, options)
Compose packaging tag as string
 
create_packaging_tag(repo, tag, commit, version, options)
Create a packaging/release Git tag
 
disable_hooks(options)
Disable all hooks (except for builder)
 
parse_args(argv, prefix, git_treeish=None)
Parse config and command line arguments
 
main(argv)
Entry point for git-buildpackage-rpm
Variables [hide private]
  __package__ = 'gbp.scripts'
Function Details [hide private]

prepare_upstream_tarball(repo, spec, options, output_dir)

 

Make sure we have an upstream tarball. This involves loooking in tarball_dir, symlinking or building it.

pristine_tar_build_orig(repo, orig_file, output_dir, options)

 

build orig using pristine-tar

Returns:
True: orig tarball build, False: noop

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.

git_archive_build_orig(repo, spec, output_dir, options)

 

Build orig tarball using git-archive

Parameters:
  • repo (RpmGitRepository) - our git repository
  • spec (SpecFile) - spec file of the package
  • output_dir (Str) - where to put the tarball
  • options (dict of options) - the parsed options
Returns: str
the tree we built the tarball from