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
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)
 
prepare_export_dir(dir)
 
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.
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)
 
setup_builder(options, builder_args)
setup everything to use git-pbuilder
 
update_tag_str_fields(tag_format_str, fields, repo, commit)
 
parse_args(argv, prefix, git_treeish=None)
 
main(argv)
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