diff options
author | Tzafrir Cohen <tzafrir@debian.org> | 2014-12-29 18:24:49 +0200 |
---|---|---|
committer | Tzafrir Cohen <tzafrir@debian.org> | 2014-12-29 22:26:24 +0200 |
commit | 03e38ad87c882d62ce9f54709fcf8c535edc36fa (patch) | |
tree | 3bc1469a9575313366a1781e9affec8d8f585ae0 /gbp/config.py | |
parent | 04ebbdb27471b6a9745c8c4fab721a57f607600a (diff) |
gbp rpm: mock chroot builder
Initial version. Very rough and many shortcuts taken.
Try:
gbp buildpackage-rpm --git-mock --git-dist=epel-6
Results will be under ../rpmbuild/results/
Diffstat (limited to 'gbp/config.py')
-rw-r--r-- | gbp/config.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gbp/config.py b/gbp/config.py index 02b9254..79404df 100644 --- a/gbp/config.py +++ b/gbp/config.py @@ -611,6 +611,12 @@ class GbpOptionParserRpm(GbpOptionParser): 'patch-export-squash-until' : '', 'spec-vcs-tag' : '', 'orig-prefix' : 'auto', + 'mock' : 'False', + 'mock-results-pat' : 'results/%(dist)s/%(target_arch)s/', + 'dist' : '', + 'arch' : '', + 'mock-root' : '', + 'mock-options' : '', }) help = dict(GbpOptionParser.help) @@ -665,6 +671,24 @@ class GbpOptionParserRpm(GbpOptionParser): 'orig-prefix': "Prefix (dir) to be used when generating/importing tarballs, " "default is '%(orig-prefix)s'", + 'mock': + ("Invoke git-mock for building, " + "default is '%(mock)s'"), + 'dist': + ("Build for this distribution when using git-mock. E.g.: epel-6, " + "default is '%(dist)s'"), + 'arch': + ("Build for this architecture when using git-mock, " + "default is '%(arch)s'"), + 'mock-root': + ("The mock root (-r) name for building with git-mock: <dist>-<arch>, " + "default is '%(mock-root)s'"), + 'mock-options': + ("Options to pass to mock, " + "default is '%(mock-options)s'"), + 'mock-result-pat': + ("Pattern describing the subdirectory under which mock will write results, " + "default is '%(mock-results-pat)s'"), }) # vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: |