summaryrefslogtreecommitdiff
path: root/gbp/config.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-01-12 15:37:49 +0200
committerGuido Günther <agx@sigxcpu.org>2014-07-24 23:33:36 +0200
commit736b9d889b5ff5d3a5abd6ec18564ff81696d8c4 (patch)
treee52136846adfaa4483e8230538e4e49bd9279d50 /gbp/config.py
parent00db052c6e2e1865a7981f5fbe48841a6185f9e2 (diff)
Introduce git-import-srpm tool
Initial version of the git-import-srpm: a tool for importing source rpms. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Diffstat (limited to 'gbp/config.py')
-rw-r--r--gbp/config.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/gbp/config.py b/gbp/config.py
index 3fa5918..02a6f06 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -516,4 +516,34 @@ class GbpOptionParserDebian(GbpOptionParser):
'cleaner' : '/bin/true',
} )
+
+class GbpOptionParserRpm(GbpOptionParser):
+ """
+ Handles commandline options and parsing of config files for rpm tools
+ """
+ defaults = dict(GbpOptionParser.defaults)
+ defaults.update({
+ 'tmp-dir' : '/var/tmp/gbp/',
+ 'packaging-branch' : 'master',
+ 'packaging-dir' : '',
+ 'packaging-tag' : 'packaging/%(version)s',
+ })
+
+ help = dict(GbpOptionParser.help)
+ help.update({
+ 'tmp-dir':
+ "Base directory under which temporary directories are "
+ "created, default is '%(tmp-dir)s'",
+ 'packaging-branch':
+ "Branch the packaging is being maintained on, rpm counterpart "
+ "of the 'debian-branch' option, default is "
+ "'%(packaging-branch)s'",
+ 'packaging-dir':
+ "Subdir for RPM packaging files, default is "
+ "'%(packaging-dir)s'",
+ 'packaging-tag':
+ "Format string for packaging tags, RPM counterpart of the "
+ "'debian-tag' option, default is '%(packaging-tag)s'",
+ })
+
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: