From cae9e673d601a815c06d2755371cfcf89d314239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Wed, 25 Aug 2004 13:04:53 +0000 Subject: [PATCH] Patch #970015: Replace - by _ in version and release. --- Lib/distutils/command/bdist_rpm.py | 4 ++-- Misc/NEWS | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py index 43181ea018b..5c8a7570b3b 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(), ] diff --git a/Misc/NEWS b/Misc/NEWS index d3ffb0494b4..cb49e0b71b1 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -57,7 +57,8 @@ Extension modules 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.