Guillaume Rousse
and 1 contributors

NAME

Youri::Package::RPM::Builder - Build RPM packages

SYNOPSIS

    my $builder = Youri::Package::RPM::Builder->new();
    $builder->build('foo');

DESCRIPTION

This module builds rpm packages.

CLASS METHODS

new(%options)

Creates and returns a new Youri::Package::RPM::Builder object.

Available options:

verbose $level

verbosity level (default: 0).

topdir $topdir

rpm top-level directory (default: rpm %_topdir macro).

sourcedir $sourcedir

rpm source directory (default: rpm %_sourcedir macro).

build_requires_callback $callback

callback to execute before build, with build dependencies as argument (default: none).

build_requires_command $command

external command (or list of commands) to execute before build, with build dependencies as argument (default: none). Takes precedence over previous option.

build_results_callback $callback

callback to execute after build, with build packages as argument (default: none).

build_results_command $command

external command (or list of commands) to execute after build, with build packages as argument (default: none). Takes precedence over previous option.

INSTANCE METHODS

build($spec_file, %options)

Available options:

options $options

rpm build options.

stage $stage

rpm build stage, among the following values: a, b, p, c, i, l or s (default: a).