Commit cae9e673 authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #970015: Replace - by _ in version and release.

parent cf525241
...@@ -332,8 +332,8 @@ class bdist_rpm (Command): ...@@ -332,8 +332,8 @@ class bdist_rpm (Command):
# definitions and headers # definitions and headers
spec_file = [ spec_file = [
'%define name ' + self.distribution.get_name(), '%define name ' + self.distribution.get_name(),
'%define version ' + self.distribution.get_version(), '%define version ' + self.distribution.get_version().replace('-','_'),
'%define release ' + self.release, '%define release ' + self.release.replace('-','_'),
'', '',
'Summary: ' + self.distribution.get_description(), 'Summary: ' + self.distribution.get_description(),
] ]
......
...@@ -57,7 +57,8 @@ Extension modules ...@@ -57,7 +57,8 @@ Extension modules
Library 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 - distutils build/build_scripts now has an -e option to specify the
path to the Python interpreter for installed scripts. path to the Python interpreter for installed scripts.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment