Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf52524

Browse files
committed
Patch #970019: Include version and release in the BuildRoot.
1 parent 9f5c0c4 commit cf52524

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/distutils/command/bdist_rpm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def _make_spec_file(self):
361361
spec_file.extend([
362362
'License: ' + self.distribution.get_license(),
363363
'Group: ' + self.group,
364-
'BuildRoot: %{_tmppath}/%{name}-buildroot',
364+
'BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot',
365365
'Prefix: %{_prefix}', ])
366366

367367
# noarch if no extension modules

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Extension modules
5757
Library
5858
-------
5959

60+
- bdist_rpm now includes version and release in the BuildRoot.
61+
6062
- distutils build/build_scripts now has an -e option to specify the
6163
path to the Python interpreter for installed scripts.
6264

0 commit comments

Comments
 (0)