diff options
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-x | src/fedpkg.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py index 475b538..83dbc7a 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -880,6 +880,17 @@ def parse_cmdline(generate_manpage = False): # Let somebody override the username found in fedora cert parser.add_argument('-u', '--user', help = "Override the username found in the fedora cert") + # Let the user define rpm macros (similar to mock) + parser.add_argument('-D', '--define', action = 'append', default = [], + dest = 'rpmmacros', metavar = "'MACRO EXPR'", + help = "define an rpm macro for rpmbuild") + # Let the user add --with/--without args for rpmbuild (similar to mock) + parser.add_argument('--with', action = 'append', default = [], + dest = 'rpmwith', + help = "enable configure option for rpmbuild") + parser.add_argument('--without', action = 'append', default = [], + dest = 'rpmwithout', + help = "disable configure option for rpmbuild") # Let the user define which path to look at instead of pwd parser.add_argument('--path', default = None, help='Directory to interact with instead of current dir') |