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

Functions [hide private]
 
git_archive(repo, spec, output_dir, treeish, comp_type, 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
str
git_archive_build_orig(repo, spec, output_dir, options)
Build orig tarball using git-archive
 
guess_comp_type(spec)
 
write_patch(patch, options)
Write the patch exported by 'git-format-patch' to it's final location (as specified in the commit)
 
gen_patches(repo, spec, totree, options)
Generate patches
 
is_native(repo, spec, options)
 
setup_builder(options, builder_args)
setup everything to use git-pbuilder
 
parse_args(argv, prefix)
 
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

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