From: Martin v. Löwis Date: Wed, 25 Aug 2004 13:00:34 +0000 (+0000) Subject: Patch #970019: Include version and release in the BuildRoot. X-Git-Tag: v2.4a3~124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf525241bb14c29f747e5fa3045a57bc80a74557;p=python Patch #970019: Include version and release in the BuildRoot. --- diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py index 4be9999497..43181ea018 100644 --- a/Lib/distutils/command/bdist_rpm.py +++ b/Lib/distutils/command/bdist_rpm.py @@ -361,7 +361,7 @@ class bdist_rpm (Command): spec_file.extend([ 'License: ' + self.distribution.get_license(), 'Group: ' + self.group, - 'BuildRoot: %{_tmppath}/%{name}-buildroot', + 'BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot', 'Prefix: %{_prefix}', ]) # noarch if no extension modules diff --git a/Misc/NEWS b/Misc/NEWS index 9ce8c2d379..d3ffb0494b 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -57,6 +57,8 @@ Extension modules Library ------- +- bdist_rpm now includes version and release in the BuildRoot. + - distutils build/build_scripts now has an -e option to specify the path to the Python interpreter for installed scripts.