| 1 |
'\" t |
| 2 |
.\" Title: copr-rpmbuild |
| 3 |
.\" Author: [see the "AUTHORS" section] |
| 4 |
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> |
| 5 |
.\" Date: 01/16/2026 |
| 6 |
.\" Manual: \ \& |
| 7 |
.\" Source: \ \& |
| 8 |
.\" Language: English |
| 9 |
.\" |
| 10 |
.TH "COPR\-RPMBUILD" "1" "01/16/2026" "\ \&" "\ \&" |
| 11 |
.\" ----------------------------------------------------------------- |
| 12 |
.\" * Define some portability stuff |
| 13 |
.\" ----------------------------------------------------------------- |
| 14 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 15 |
.\" http://bugs.debian.org/507673 |
| 16 |
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html |
| 17 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 18 |
.ie \n(.g .ds Aq \(aq |
| 19 |
.el .ds Aq ' |
| 20 |
.\" ----------------------------------------------------------------- |
| 21 |
.\" * set default formatting |
| 22 |
.\" ----------------------------------------------------------------- |
| 23 |
.\" disable hyphenation |
| 24 |
.nh |
| 25 |
.\" disable justification (adjust text to left margin only) |
| 26 |
.ad l |
| 27 |
.\" ----------------------------------------------------------------- |
| 28 |
.\" * MAIN CONTENT STARTS HERE * |
| 29 |
.\" ----------------------------------------------------------------- |
| 30 |
.SH "NAME" |
| 31 |
copr-rpmbuild \- run COPR builds\&. |
| 32 |
.SH "SYNOPSIS" |
| 33 |
.sp |
| 34 |
copr\-rpmbuild [\-c|\-\-config CONFIG_PATH] [\-d|\-\-detached] [\-\-drop\-resultdir] [\-\-rpm|\-\-srpm] [\-r|\-\-chroot CHROOT_NAME] [\-v|\-\-verbose] [\-h|\-\-help] [\-\-build\-id COPR_BUILD_ID] |
| 35 |
.SH "DESCRIPTION" |
| 36 |
.sp |
| 37 |
Runs COPR build of the specified build ID and puts results into /var/lib/copr\-rpmbuild/results/\&. The script generates target RPMs by default but it can also generate just an SRPM by using \-\-srpm switch\&. |
| 38 |
.SH "OPTIONS" |
| 39 |
.PP |
| 40 |
\-\-build\-id COPR_BUILD_ID |
| 41 |
.RS 4 |
| 42 |
Run build of the specified ID\&. |
| 43 |
.RE |
| 44 |
.PP |
| 45 |
\-\-drop\-resultdir |
| 46 |
.RS 4 |
| 47 |
Drops resultdir and its content at the beginning before continuing\&. |
| 48 |
.RE |
| 49 |
.PP |
| 50 |
\-\-config CONFIG_PATH |
| 51 |
.RS 4 |
| 52 |
Path to an alternative config file\&. By default /etc/copr\-rpmbuild/main\&.ini is used\&. |
| 53 |
.RE |
| 54 |
.PP |
| 55 |
\-\-detached |
| 56 |
.RS 4 |
| 57 |
Run build in background and output the process PID\&. Log into /var/lib/copr\-rpmbuild/main\&.log\&. |
| 58 |
.RE |
| 59 |
.PP |
| 60 |
\-\-chroot CHROOT_NAME |
| 61 |
.RS 4 |
| 62 |
Name of the chroot to build for\&. This follows mock\(cqs convention for naming chroots (e\&.g\&. fedora\-27\-x86_64)\&. See /etc/mock for the full list\&. |
| 63 |
.RE |
| 64 |
.PP |
| 65 |
\-\-srpm |
| 66 |
.RS 4 |
| 67 |
Build SRPM instead of building RPM\&. |
| 68 |
.RE |
| 69 |
.PP |
| 70 |
\-\-rpm |
| 71 |
.RS 4 |
| 72 |
Build RPM\&. This is the default action\&. Requires \-\-chroot to be specified\&. |
| 73 |
.RE |
| 74 |
.PP |
| 75 |
\-\-verbose |
| 76 |
.RS 4 |
| 77 |
Print debugging information\&. |
| 78 |
.RE |
| 79 |
.PP |
| 80 |
\-\-help |
| 81 |
.RS 4 |
| 82 |
Display help\&. |
| 83 |
.RE |
| 84 |
.SH "EXAMPLES" |
| 85 |
.PP |
| 86 |
copr\-rpmbuild \-v \-\-build\-id 551347 \-\-chroot epel\-7\-x86_64 |
| 87 |
.RS 4 |
| 88 |
Runs COPR build of ID 551347 in epel\-7\-x86_64 mock chroot and print verbose information\&. RPM will be the result\&. |
| 89 |
.RE |
| 90 |
.PP |
| 91 |
copr\-rpmbuild \-v \-\-build\-id 551347 \-\-srpm |
| 92 |
.RS 4 |
| 93 |
Runs the same COPR build as in the previous example and again with verbose information but this time, SRPM will be built\&. |
| 94 |
.RE |
| 95 |
.SH "AUTHORS" |
| 96 |
.sp |
| 97 |
clime <clime@redhat\&.com> |
| 98 |
.sp |
| 99 |
Jakub Kadlcik <jkadlcik@redhat\&.com> |