.. _build:

build
=====

.. program:: build

Synopsis
--------

::

    sample-rpkg build [-h] [--arches [ARCHES [ARCHES ...]]] [--md5]
                      [--nowait] [--target TARGET] [--background]
                      [--fail-fast] [--skip-nvr-check] [--skip-tag]
                      [--scratch] [--srpm [SRPM]]

Description
-----------

This command requests a build of the package in the build system. By default it discovers the target to build for based on branch data, and uses the latest commit as the build source.



Options
-------

.. option:: -h --help

   show this help message and exit

.. option:: --arches

   Build for specific arches

.. option:: --md5

   Use md5 checksums (for older rpm hosts)

.. option:: --nowait

   Don't wait on build

.. option:: --target

   Define build target to build into

.. option:: --background

   Run the build at a low priority

.. option:: --fail-fast

   Fail the build immediately if any arch fails

.. option:: --skip-nvr-check

   Submit build to buildsystem without check if NVR was already built. NVR is constructed locally and may be different from NVR constructed during build on builder.

.. option:: --skip-tag

   Do not attempt to tag package

.. option:: --scratch

   Perform a scratch build

.. option:: --srpm

   Build from an srpm. If no srpm is provided with this option an srpm will be generated from current module content.