* setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
handle the prefix properly which means that the default for the
installation prefix should be /usr for RPMs and /usr/local when
doing a normal source install.
(bdist_rpm_install_script): Script to override the default install
commands in the specfile generated by the bdist_rpm command.
(thuban_bdist_rpm.user_options): Add a prefix option
(thuban_bdist_rpm.initialize_options): Init the prefix option.
Create the script files for the spec files as empty files here
(thuban_bdist_rpm._make_spec_file): Override the inherited method
to fill the script files with content.
|