From 03e38ad87c882d62ce9f54709fcf8c535edc36fa Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Mon, 29 Dec 2014 18:24:49 +0200 Subject: 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/ --- gbp/config.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gbp/config.py') 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: -, " + "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\:·: -- cgit v1.2.3