copr-build

packit copr-build #

Submit a Copr build of the present content in the upstream repository.

Requirements #

  • Upstream git repository on Github.
  • Packit config file placed in the upstream repository.
  • ~/.config/copr

Tutorial #

  1. Place a config file for packit in the root of your upstream repository.

  2. The command below would create a SRPM from the present content of a repo and perform copr-cli build with it. If you need to specify a project name/owner or chroots, see the options in help.

    $ cd my/ustream/project/
    $ packit copr-build
    

Help #

Usage: packit copr-build [OPTIONS] [PATH_OR_URL]

  Build selected upstream project in COPR.

  PATH_OR_URL argument is a local path or a URL to the upstream git
  repository, it defaults to the current working directory.

Options:
  --nowait                   Don't wait for build
  --owner TEXT               Copr user, owner of the project. (defaults to
                             username from copr config)

  --project TEXT             Project name to build in. Will be created if does
                             not exist. (defaults to the first found project
                             value in the config file or 'packit-
                             cli-{repo_name}-{branch/commit}')

  --targets TEXT             Comma separated list of chroots to build in.
                             (defaults to 'fedora-rawhide-x86_64')

  --description TEXT         Description of the project to build in.
  --instructions TEXT        Installation instructions for the project to
                             build in.

  --list-on-homepage         Created copr project will be visible on copr's
                             home-page.

  --preserve-project         Created copr project will not be removed after 60
                             days.

  --additional-repos TEXT    URLs to additional yum repos, which can be used
                             during build. Comma separated. This should be
                             baseurl from .repo file. E.g.: http://copr-be.clo
                             ud.fedoraproject.org/results/rhughes/f20-gnome-3-
                             12/fedora-$releasever-$basearch/

  --upstream-ref TEXT        Git ref of the last upstream commit in the
                             current branch from which packit should generate
                             patches (this option implies the repository is
                             source-git).

  --request-admin-if-needed  Ask for admin permissions when we need to change
                             settings of the copr project and are not allowed
                             to do so.

  -h, --help                 Show this message and exit.