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: bool = False¶
- CREATES_TASKS: bool = False¶
- DEFAULT: bool = 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
- 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
- class rebasehelper.plugins.build_tools.rpm.BuildToolCollection(entrypoint: str, manager: PluginManager)[source]¶
Collection of RPM build tools.