/usr/share/doc/git-buildpackage/manual-html/man.gbp.buildpackage.rpm.html is in git-buildpackage 0.9.8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>gbp-buildpackage-rpm: Building Debian Packages with git-buildpackage</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Building Debian Packages with git-buildpackage">
<link rel="up" href="man.reference.html" title="Appendix A. Command Reference">
<link rel="prev" href="man.gbp.conf.html" title="gbp.conf">
<link rel="next" href="man.gbp.import.srpm.html" title="gbp-import-srpm">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="man.reference.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="man.gbp.conf.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="man.gbp.import.srpm.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="man.gbp.buildpackage.rpm"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle">gbp-buildpackage-rpm</span></h2>
<p>gbp-buildpackage-rpm — Build RPM packages from a Git repository</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<div class="cmdsynopsis"><p><code class="command">gbp buildpackage-rpm</code> [<code class="option">--git-[no-]ignore-new</code>] [<code class="option">--git-tag</code>] [<code class="option">--git-verbose</code>] [<code class="option">--git-color=</code>[auto|on|off]] [<code class="option">--git-color-scheme=</code><em class="replaceable"><code>COLOR_SCHEME</code></em>] [<code class="option">--git-notify=</code>[auto|on|off]] [<code class="option">--git-tmp-dir</code>=<em class="replaceable"><code>DIRECTORY</code></em>] [<code class="option">--git-vendor</code>=<em class="replaceable"><code>VENDOR</code></em>] [<code class="option">--git-native</code>[auto|on|off]] [<code class="option">--git-upstream-branch=</code><em class="replaceable"><code>TREEISH</code></em>] [<code class="option">--git-packaging-branch=</code><em class="replaceable"><code>BRANCH_NAME</code></em>] [<code class="option">--git-ignore-branch</code>] [<code class="option">--git-[no-]submodules</code>] [<code class="option">--git-builder=</code><em class="replaceable"><code>BUILD_CMD</code></em>] [<code class="option">--git-cleaner=</code><em class="replaceable"><code>CLEAN_CMD</code></em>] [<code class="option">--git-[no-]sign-tags</code>] [<code class="option">--git-keyid=</code><em class="replaceable"><code>GPG-KEYID</code></em>] [<code class="option">--git-posttag=</code><em class="replaceable"><code>COMMAND</code></em>] [<code class="option">--git-postbuild=</code><em class="replaceable"><code>COMMAND</code></em>] [<code class="option">--git-postexport=</code><em class="replaceable"><code>COMMAND</code></em>] [<code class="option">--git-prebuild=</code><em class="replaceable"><code>COMMAND</code></em>] [<code class="option">--git-[no-]build</code>] [<code class="option">--git-[no-]hooks</code>] [<code class="option">--git-packaging-tag=</code><em class="replaceable"><code>TAG-FORMAT</code></em>] [<code class="option">--git-upstream-tag=</code><em class="replaceable"><code>TAG-FORMAT</code></em>] [<code class="option">--git-force-create</code>] [<code class="option">--git-no-create-orig</code>] [<code class="option">--git-upstream-tree=</code><em class="replaceable"><code>[TAG|BRANCH|TREEISH]</code></em>] [<code class="option">--git-tarball-dir=</code><em class="replaceable"><code>DIRECTORY</code></em>] [<code class="option">--git-compression-level=</code><em class="replaceable"><code>LEVEL</code></em>] [<code class="option">--git-export-dir=</code><em class="replaceable"><code>DIRECTORY</code></em>] [<code class="option">--git-export=</code><em class="replaceable"><code>TREEISH</code></em>] [<code class="option">--git-packaging-dir=</code><em class="replaceable"><code>DIRECTORY</code></em>] [<code class="option">--git-spec-file=</code><em class="replaceable"><code>FILEPATH</code></em>] [<code class="option">--git-export-sourcedir</code>=<em class="replaceable"><code>DIRECTORY</code></em>] [<code class="option">--git-export-specdir</code>=<em class="replaceable"><code>DIRECTORY</code></em>] [<code class="option">--git-[no-]pristine-tar</code>] [<code class="option">--git-[no-]pristine-tar-commit</code>] [<code class="option">--git-tag-only</code>] [<code class="option">--git-retag</code>] [<code class="option">--git-mock</code>] [<code class="option">--git-dist</code>=<em class="replaceable"><code>DISTRIBUTION</code></em>] [<code class="option">--git-arch</code>=<em class="replaceable"><code>ARCHITECTURE</code></em>] [<code class="option">--git-mock-options</code>=<em class="replaceable"><code>OPTIONS</code></em>] [<code class="option">--git-mock-root</code>=<em class="replaceable"><code>ROOT</code></em>] [<code class="option">--git-spec-vcs-tag</code>=<em class="replaceable"><code>TAG_FORMAT</code></em>]</p></div>
</div>
<div class="refsect1">
<a name="id-1.9.18.5"></a><h2>DESCRIPTION</h2>
<p>
<span class="command"><strong>gbp buildpackage-rpm</strong></span> is used to build RPM packages from a <span class="productname">Git</span>™
repository. It is an RPM counterpart for the <span class="command"><strong>gbp buildpackage</strong></span> tool that
is designed for building Debian packages.
</p>
<p>
<span class="command"><strong>gbp buildpackage-rpm</strong></span> will, in order:
</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>
Verify that it is being executed from the proper location.
</p></li>
<li class="listitem"><p>
Verify that the repository doesn't contain any uncommitted source
changes.
</p></li>
<li class="listitem"><p>
Verify that it is being executed from the correct branch.
</p></li>
<li class="listitem"><p>
Export packaging files to a separate build area.
</p></li>
<li class="listitem"><p>
Create an orig source tarball if it doesn't exist.
</p></li>
<li class="listitem"><p>
Call <span class="application">rpmbuild</span>(1) (or the application
specified via <code class="option">--git-builder</code>), passing along all
command line arguments that don't start with --git-.
</p></li>
<li class="listitem"><p>
(Optionally) tag the tree after a successful build.
</p></li>
<li class="listitem"><p>
(Optionally) call a post build hook - e.g. to run
<span class="productname">rpmlint</span>™.
</p></li>
<li class="listitem"><p>
(Optionally) call a post tag hook - e.g. to push the results to a
remote repository after creating the tag.
</p></li>
</ul></div>
</div>
<div class="refsect1">
<a name="id-1.9.18.6"></a><h2>OPTIONS</h2>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="option">--git-[no-]ignore-new</code>
</span></p></td>
<td><p>
Don't abort if there are uncommitted changes in the source tree or
the current branch doesn't match the
<em class="replaceable"><code>PACKAGING-BRANCH</code></em>.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-tag</code>
</span></p></td>
<td><p>
Add a git tag after a successful build.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-builder=<em class="replaceable"><code>BUILD_CMD</code></em></code>
</span></p></td>
<td><p>
Use <em class="replaceable"><code>BUILD_CMD</code></em> instead of
<span class="command"><strong>rpmbuild -ba</strong></span>.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-cleaner=<em class="replaceable"><code>CLEAN_CMD</code></em></code>
</span></p></td>
<td><p>
Use <em class="replaceable"><code>CLEAN_CMD</code></em>.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-verbose</code>
</span></p></td>
<td><p>
Verbose execution
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-color=</code>[auto|on|off]
</span></p></td>
<td><p>
Whether to use colored output.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-color-scheme=</code><em class="replaceable"><code>COLOR_SCHEME</code></em>
</span></p></td>
<td><p>
Colors to use in output (when color is enabled). The format for
COLOR_SCHEME is
'<debug>:<info>:<warning>:<error>'.
Numerical values and color names are accepted, empty fields imply
the default color. For example --git-color-scheme='cyan:34::' would
show debug messages in cyan, info messages in blue and other messages
in default (i.e. warning and error messages in red).
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-notify=</code>[auto|on|off]
</span></p></td>
<td><p>
Whether to send a desktop notification after the build.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-tmp-dir</code>=<em class="replaceable"><code>DIRECTORY</code></em>
</span></p></td>
<td><p>
Base directory under which temporary directories are created.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-vendor</code>=<em class="replaceable"><code>VENDOR</code></em>
</span></p></td>
<td><p>
Distribution vendor name.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-native=</code>[auto|on|off]
</span></p></td>
<td><p>
Define the 'nativity' of a package. The default value
<em class="replaceable"><code>auto</code></em> makes <span class="command"><strong>gbp buildpackage-rpm</strong></span> to
guess. Guessing is based on the existence of upstream branch.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-upstream-branch</code>=<em class="replaceable"><code>BRANCH_NAME</code></em>
</span></p></td>
<td><p>
Branch to build the orig tarball from if
<code class="option">--git-upstream-tree</code> is set to
<em class="replaceable"><code>BRANCH</code></em>. Default is
<em class="replaceable"><code>upstream</code></em>.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-packaging-branch</code>=<em class="replaceable"><code>BRANCH_NAME</code></em>
</span></p></td>
<td><p>
If you're not on this branch when invoking <span class="command"><strong>gbp buildpackage-rpm</strong></span> it
will fail. Default is <em class="replaceable"><code>master</code></em>. This is done
to make sure you don't accidentally release from a topic branch. Not
being on this branch will be ignored when using
<code class="option">--git-ignore-new</code>.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-ignore-branch</code>
</span></p></td>
<td><p>
Don't check if the current branch matches
<em class="replaceable"><code>PACKAGING-BRANCH</code></em>.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-[no-]submodules</code>
</span></p></td>
<td><p>
Include git submodules in the orig tarball.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-[no-]sign-tags</code>
</span></p></td>
<td><p>
GPG sign all created tags.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-keyid=</code><em class="replaceable"><code>GPG-KEYID</code></em>
</span></p></td>
<td><p>
Use this keyid for gpg signing tags.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-posttag=</code><em class="replaceable"><code>COMMAND</code></em>
</span></p></td>
<td>
<p>
Excecute <em class="replaceable"><code>COMMAND</code></em> after tagging a new
version.
</p>
<p>
Exported environment variables are: <code class="envar">GBP_TAG</code> (the name
of the generated tag), <code class="envar">GBP_BRANCH</code> (the branch the
package was build from) and <code class="envar">GBP_SHA1</code> (the sha1 of the
commit the tag was created at).
</p>
</td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-postbuild=</code><em class="replaceable"><code>COMMAND</code></em>
</span></p></td>
<td>
<p>
Execute <em class="replaceable"><code>COMMAND</code></em> after successful
build.
</p>
<p>
Exported environment variables are: <code class="envar">GBP_CHANGES_FILE</code>
(the name of the generated changes file),
<code class="envar">GBP_BUILD_DIR</code> (the build dir).
</p>
</td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-postexport=</code><em class="replaceable"><code>COMMAND</code></em>
</span></p></td>
<td>
<p>
Execute <em class="replaceable"><code>COMMAND</code></em> after exporting the source
tree.
</p>
<p>
Exported environment variables are: <code class="envar">GBP_GIT_DIR</code> (the
repository the package is being built from),
<code class="envar">GBP_TMP_DIR</code> (the temporary directory where the sources
have been initially exported).
</p>
</td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-prebuild=</code><em class="replaceable"><code>COMMAND</code></em>
</span></p></td>
<td>
<p>
Execute <em class="replaceable"><code>COMMAND</code></em> from the build directory
before calling <span class="application">rpmbuild</span> or the application
specified via <code class="option">--git-builder</code>.
</p>
<p>
Exported environment variables are: <code class="envar">GBP_GIT_DIR</code> (the
repository the package is being built from),
<code class="envar">GBP_BUILD_DIR</code> (the build dir).
</p>
</td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-[no-]build</code>
</span></p></td>
<td><p>
Enable builder. Note: <code class="option">--git-no-build</code> causes the
postbuild hook to be disabled, too.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-[no-]hooks</code>
</span></p></td>
<td><p>
Enable running all (cleaner, postexport, prebuild, postbuild, and
posttag) hooks. Note: the <code class="option">--git-builder</code> command is
not affected by this option.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-packaging-tag=</code><em class="replaceable"><code>TAG-FORMAT</code></em>
</span></p></td>
<td><p>
Use this tag format when tagging released versions of the package.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-upstream-tag=</code><em class="replaceable"><code>TAG-FORMAT</code></em>
</span></p></td>
<td><p>
Use this tag format when looking for tags of upstream versions,
default is <em class="replaceable"><code>upstream/%(version)s</code></em>.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-force-create</code>
</span></p></td>
<td><p>
Force creation of an orig tarball (overwriting a pre-existing one if
present).
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-no-create-orig</code>
</span></p></td>
<td><p>
Don't try to create any orig tarball.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-export-dir=</code><em class="replaceable"><code>DIRECTORY</code></em>
</span></p></td>
<td><p>
Export the packaging files from the current branch head (or the
treeish object given via <code class="option">--git-export</code> to
<em class="replaceable"><code>DIRECTORY</code></em> before building.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-export-sourcedir</code>=<em class="replaceable"><code>DIRECTORY</code></em>
, </span><span class="term"><code class="option">--git-export-specdir</code>=<em class="replaceable"><code>DIRECTORY</code></em>
</span></p></td>
<td><p>
Subdirectories under export directory where packaging files are
exported. The default build options of rpmbuild builder are also
adjusted accordingly.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-export=</code><em class="replaceable"><code>TREEISH</code></em>
</span></p></td>
<td><p>
Instead of exporting the current branch head, export the treeish
object <em class="replaceable"><code>TREEISH</code></em>. The special name
<em class="replaceable"><code>INDEX</code></em> exports the current index,
<em class="replaceable"><code>WC</code></em>) exports all files in the
current working directory.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-packaging-dir=</code><em class="replaceable"><code>DIRECTORY</code></em>
</span></p></td>
<td><p>
Subdirectory that contains the RPM packaging files.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-spec-file=</code><em class="replaceable"><code>FILEPATH</code></em>
</span></p></td>
<td><p>
Relative path to the spec file to use. Special value
<em class="replaceable"><code>auto</code></em> causes <span class="command"><strong>gbp buildpackage-rpm</strong></span> to
search and guess. Other values cause the
<code class="option">--git-packaging-dir</code> option to be ignored: the
directory of the spec file is used, instead.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-upstream-tree=</code><em class="replaceable"><code>[TAG|BRANCH|TREEISH]</code></em>
</span></p></td>
<td>
<p>
How to find the upstream sources used to generate the tarball.
<em class="replaceable"><code>TAG</code></em> looks at a tag corresponding to the
version in the changelog. <em class="replaceable"><code>BRANCH</code></em> looks at
the upstream branch given via the
<code class="option">--git-upstream-branch</code> option. Other values are
interpreted as treeishs.
</p>
<p>
This doesn't have any effect if <code class="option">--git-pristine-tar</code>
is being used.
</p>
</td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-tarball-dir=</code><em class="replaceable"><code>DIRECTORY</code></em>
</span></p></td>
<td><p>
Search for original tarballs in <em class="replaceable"><code>DIRECTORY</code></em>
instead of generating them.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-compression-level=</code><em class="replaceable"><code>LEVEL</code></em>
</span></p></td>
<td><p>
Specifies the upstream tarball compression level if an upstream
tarball needs to be built.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-tag-only</code>
</span></p></td>
<td><p>
Don't build, only tag and run post-tag hooks.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-retag</code>
</span></p></td>
<td><p>
Don't fail tag operations if a tag with the same version already
exists, but, overwrite the existing tag, instead.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-pristine-tar</code>
</span></p></td>
<td><p>
Use pristine-tar when generating the upstream tarball if it doesn't
exist.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-pristine-tar-commit</code>
</span></p></td>
<td><p>
Commit the pristine-tar delta to the pristine-tar branch if a new
tarball was generated and the pristine-tar data isn't already there.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-mock</code>
</span></p></td>
<td><p>
Use <span class="productname">mock</span>™ to build the rpms by invoking <span class="command"><strong>gbp-builder-mock</strong></span>.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-dist</code>
</span></p></td>
<td><p>
Build for this distribution when using <span class="productname">mock</span>™ (e.g.: epel-6).
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-arch</code>
</span></p></td>
<td><p>
Build for this architecture when using mock, default is to build
for the current host architecture.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-mock-root</code>
</span></p></td>
<td><p>
The mock root to use. Defaults
to <em class="replaceable"><code>DIST</code></em>-<em class="replaceable"><code>ARCH</code></em>
from above.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-mock-options</code>
</span></p></td>
<td><p>
Additional options to pass to mock. Default is to pass no
additional options.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="option">--git-spec-vcs-tag</code>=<em class="replaceable"><code>TAG_FORMAT</code></em>
</span></p></td>
<td><p>
<span class="command"><strong>gbp buildpackage-rpm</strong></span> always automatically sets/updates the 'VCS:'
tag in the spec file after exporting. This option defines the format
string for the 'VCS:' tag. An empty value causes no 'VCS:' tag to be
inserted and possible old 'VCS:' tag to be removed. Otherwise, the
old 'VCS:' tag is updated or a new 'VCS:' tag is added if one does
not exist. In the format string '%(tagname)s' expands to the long tag
name (from git-describe) and '%(commit)s' expans to the sha1 of the
exported commit.
</p></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="id-1.9.18.7"></a><h2>EXAMPLES</h2>
<p>
Only build a source RPM with <span class="command"><strong>rpmbuild</strong></span>
</p>
<pre class="screen">
<span class="command"><strong>gbp buildpackage-rpm</strong></span> -bs
</pre>
<p>
Build an RPM package with <span class="command"><strong>rpmbuild</strong></span> on a custom branch with the uncommitted
changes included.
</p>
<pre class="screen">
<span class="command"><strong>gbp buildpackage-rpm</strong></span> --git-ignore-branch --git-export=WC
</pre>
</div>
<div class="refsect1">
<a name="id-1.9.18.8"></a><h2>CONFIGURATION FILES</h2>
<p>Several <code class="filename">gbp.conf</code> files are parsed
to set defaults for the above command-line arguments. See the
<a class="xref" href="man.gbp.conf.html" title="gbp.conf"><span class="refentrytitle">gbp.conf</span>(5)</a> manpage for details.</p>
<p>
All options in the config files are specified without the 'git-' prefix.
</p>
</div>
<div class="refsect1">
<a name="id-1.9.18.9"></a><h2>SEE ALSO</h2>
<p>
<a class="xref" href="man.gbp.import.srpm.html" title="gbp-import-srpm"><span class="refentrytitle">gbp-import-srpm</span>(1)</a>,
<a class="xref" href="man.gbp.pq.rpm.html" title="gbp-pq-rpm"><span class="refentrytitle">gbp-pq-rpm</span>(1)</a>,
<a class="xref" href="man.gbp.rpm.ch.html" title="gbp-rpm-ch"><span class="refentrytitle">gbp-rpm-ch</span>(1)</a>,
<span class="citerefentry"><span class="refentrytitle">rpmbuild</span>(8)</span>,
<span class="citerefentry"><span class="refentrytitle">mock</span>(1)</span>,
<a class="xref" href="man.gbp.conf.html" title="gbp.conf"><span class="refentrytitle">gbp.conf</span>(5)</a>,
<span class="citerefentry"><span class="refentrytitle">debuild</span>(1)</span>,
<span class="citerefentry"><span class="refentrytitle">git</span>(1)</span>,
<span class="citerefentry"><span class="refentrytitle">pristine-tar</span>(1)</span>,
<a class="ulink" href="file:///usr/share/doc/git-buildpackage/manual-html/index.html" target="_top">
<em class="citetitle">The Git-Buildpackage Manual</em></a>
</p>
</div>
<div class="refsect1">
<a name="id-1.9.18.10"></a><h2>AUTHOR</h2>
<p>
Markus Lehtonen <code class="email"><<a class="email" href="mailto:markus.lehtonen@linux.intel.com">markus.lehtonen@linux.intel.com</a>></code>
</p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc</div>
</body>
</html>
|