diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-09-10 06:25:01 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-09-10 06:25:01 (GMT) |
commit | 641d64812cdb52c7e3bbc17644e403d030baad30 (patch) | |
tree | fd063b90d121be84d0c58f93637a265caccb663e /Lib | |
parent | 1f7d6a633f2031053661da9b728380200d1486be (diff) | |
download | cpython-641d64812cdb52c7e3bbc17644e403d030baad30.zip cpython-641d64812cdb52c7e3bbc17644e403d030baad30.tar.gz cpython-641d64812cdb52c7e3bbc17644e403d030baad30.tar.bz2 |
Patch #808115: Add script support to bdist_rpm.py.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/command/bdist_rpm.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py index 5c8a757..11fd9f1 100644 --- a/Lib/distutils/command/bdist_rpm.py +++ b/Lib/distutils/command/bdist_rpm.py @@ -95,6 +95,31 @@ class bdist_rpm (Command): "RPM 3 compatibility mode (default)"), ('rpm2-mode', None, "RPM 2 compatibility mode"), + + # Add the hooks necessary for specifying custom scripts + ('prep-script=', None, + "Specify a script for the PREP phase of RPM building"), + ('build-script=', None, + "Specify a script for the BUILD phase of RPM building"), + + ('pre-install=', None, + "Specify a script for the pre-INSTALL phase of RPM building"), + ('install-script=', None, + "Specify a script for the INSTALL phase of RPM building"), + ('post-install=', None, + "Specify a script for the post-INSTALL phase of RPM building"), + + ('pre-uninstall=', None, + "Specify a script for the pre-UNINSTALL phase of RPM building"), + ('post-uninstall=', None, + "Specify a script for the post-UNINSTALL phase of RPM building"), + + ('clean-script=', None, + "Specify a script for the CLEAN phase of RPM building"), + + ('verify-script=', None, + "Specify a script for the VERIFY phase of the RPM build"), + ] boolean_options = ['keep-temp', 'use-rpm-opt-flags', 'rpm3-mode'] |