summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/bdist_rpm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py
index 43181ea..5c8a757 100644
--- a/Lib/distutils/command/bdist_rpm.py
+++ b/Lib/distutils/command/bdist_rpm.py
@@ -332,8 +332,8 @@ class bdist_rpm (Command):
# 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(),
]