RPM Build Tools package

class rebasehelper.plugins.build_tools.rpm.BuildToolBase[source]

Build tool base class.

DEFAULT

If True, the build tool is default tool.

Type:bool
ACCEPTS_OPTIONS

If True, the build tool accepts additional options passed via –builder-options.

Type:bool
CREATES_TASKS

If True, the build tool creates remote tasks.

Type:bool
ACCEPTS_OPTIONS = False
CREATES_TASKS = False
DEFAULT = False
classmethod build(spec, results_dir, srpm, **kwargs)[source]

Build binaries from the sources.

Keyword arguments: spec – path to a SPEC file sources – list with absolute paths to SOURCES patches – list with absolute paths to PATCHES results_dir – path to DIR where results should be stored

Returns: dict with: ‘srpm’ -> absolute path to SRPM ‘rpm’ -> list of absolute paths to RPMs ‘logs’ -> list of absolute paths to logs

static get_builder_options(**kwargs)[source]
classmethod get_detached_task(task_id, results_dir)[source]

Gets packages and logs for specified task

Parameters:
  • task_id – detached task id
  • results_dir – path to DIR where results should be stored
Returns:

tuple with: list of absolute paths to RPMs list of absolute paths to logs

classmethod get_task_info(build_dict)[source]

Gets information about detached remote task

Parameters:build_dict – build data
Returns:task info
classmethod prepare(spec, conf)[source]

Prepare for building.

Parameters:spec – spec file object
classmethod wait_for_task(build_dict, task_id, results_dir)[source]

Waits until specified task is finished

Parameters:
  • build_dict – build data
  • results_dir – path to DIR where results should be stored
Returns:

tuple with: list of absolute paths to RPMs list of absolute paths to logs

class rebasehelper.plugins.build_tools.rpm.BuildToolCollection(entrypoint: str, manager: PluginManager)[source]

Collection of RPM build tools.