Package gbp :: Package scripts :: Module buildpackage_rpm

[hide private]
[frames] | no frames]

# Module buildpackage_rpm

Build an RPM package out of a Git repository

Classes | [hide private]

| GbpAutoGenerateError

Functions | [hide private]

makedir(path) Create directory |

git_archive(repo, spec, output_dir, 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 |

pristine_tar_build_orig(repo, orig_file, output_dir, options) Build orig using pristine-tar |

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

`str`

git_archive_build_orig(repo, spec, output_dir, options) Build orig tarball using git-archive |

is_native(repo, options) Determine whether a package is native or non-native |

setup_builder(options, builder_args) Setup args and options for builder script |

packaging_tag_data(repo, commit, name, version, options) Compose packaging tag name and msg |

setup_mock(options) setup everything to use gbp-builder-mock |

create_packaging_tag(repo, commit, name, version, options) Create a packaging/release Git tag |

disable_hooks(options) Disable all hooks (except for builder) |

build_parser(name, prefix=None, git_treeish=None) Construct config/option parser |

parse_args(argv, prefix, git_treeish=None) Parse config and command line arguments |

main(argv) Entry point for gbp-buildpackage-rpm |

Variables | [hide private]

| __package__ = ``'``gbp.scripts``'``

Function Details | [hide private]

### 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