From 04ebbdb27471b6a9745c8c4fab721a57f607600a Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Tue, 23 Dec 2014 21:06:26 +0200 Subject: Add buildpackage-rpm --- gbp/config.py | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) (limited to 'gbp/config.py') diff --git a/gbp/config.py b/gbp/config.py index e86cc6e..02b9254 100644 --- a/gbp/config.py +++ b/gbp/config.py @@ -590,9 +590,27 @@ class GbpOptionParserRpm(GbpOptionParser): 'packaging-branch' : 'master', 'packaging-dir' : '', 'packaging-tag' : 'packaging/%(version)s', - 'spec-file' : '', + 'pq-branch' : 'development/%(branch)s', 'import-files' : ['.gbp.conf', 'debian/gbp.conf'], + 'spec-file' : '', + 'builder' : 'rpmbuild', + 'cleaner' : '/bin/true', + 'export-dir' : '../rpmbuild', + 'native' : 'auto', + 'ignore-untracked' : 'False', + 'rpmbuild-builddir' : 'BUILD', + 'rpmbuild-rpmdir' : 'RPMS', + 'rpmbuild-sourcedir' : 'SOURCES', + 'rpmbuild-specdir' : 'SPECS', + 'rpmbuild-srpmdir' : 'SRPMS', + 'rpmbuild-buildrootdir' : 'BUILDROOT', + 'patch-export' : 'False', + 'patch-export-compress' : '0', + 'patch-export-ignore-path' : '', + 'patch-export-squash-until' : '', + 'spec-vcs-tag' : '', + 'orig-prefix' : 'auto', }) help = dict(GbpOptionParser.help) @@ -612,6 +630,9 @@ class GbpOptionParserRpm(GbpOptionParser): 'packaging-tag': "Format string for packaging tags, RPM counterpart of the " "'debian-tag' option, default is '%(packaging-tag)s'", + 'pq-branch': + "format string for the patch-queue branch name, default is " + "'%(pq-branch)s'", 'spec-file': "Spec file to use, causes the packaging-dir option to be " "ignored, default is '%(spec-file)s'", @@ -619,6 +640,31 @@ class GbpOptionParserRpm(GbpOptionParser): "Comma-separated list of additional file(s) to import from " "packaging branch. These will appear as one monolithic patch " "in the pq/development branch. Default is %(import-files)s", + 'native': + "Treat this package as native, default is '%(native)s'", + 'ignore-untracked': + "build with untracked files in the source tree, default is " + "'%(ignore-untracked)s'", + 'patch-export': + "Create patches between upstream and export-treeish, default " + "is '%(patch-export)s'", + 'patch-export-compress': + "Compress (auto-generated) patches larger than given number of " + "bytes, 0 never compresses, default is " + "'%(patch-export-compress)s'", + 'patch-export-ignore-path': + "Exclude changes to path(s) matching regex, default is " + "'%(patch-export-ignore-path)s'", + 'patch-export-squash-until': + "Squash commits (from upstream) until given tree-ish into one " + "big diff, format is '[:]'. " + "Default is '%(patch-export-squash-until)s'", + 'spec-vcs-tag': + "Set/update the 'VCS:' tag in the spec file, empty value " + "removes the tag entirely, default is '%(spec-vcs-tag)s'", + 'orig-prefix': + "Prefix (dir) to be used when generating/importing tarballs, " + "default is '%(orig-prefix)s'", }) # vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: -- cgit v1.2.3