diff options
Diffstat (limited to 'gbp/config.py')
-rw-r--r-- | gbp/config.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gbp/config.py b/gbp/config.py index 3fa59186..02a6f06f 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\:·: |