# definitions and headers
spec_file = [
'%define name ' + self.distribution.get_name(),
- '%define version ' + self.distribution.get_version(),
- '%define release ' + self.release,
+ '%define version ' + self.distribution.get_version().replace('-','_'),
+ '%define release ' + self.release.replace('-','_'),
'',
'Summary: ' + self.distribution.get_description(),
]
Library
-------
-- bdist_rpm now includes version and release in the BuildRoot.
+- bdist_rpm now includes version and release in the BuildRoot, and
+ replaces - by ``_`` in version and release.
- distutils build/build_scripts now has an -e option to specify the
path to the Python interpreter for installed scripts.