Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 133627 - Flexible python version in RPM spec file
Flexible python version in RPM spec file
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2004-09-25 06:56 EDT by Robert Scheck
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-09-26 13:33:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Robert Scheck 2004-09-25 06:56:27 EDT
Description of problem:
The python version in the RPM spec file should be more flexible, 
so I suggest the use of 'python -c "import sys; print sys.version 

Version-Release number of selected component (if applicable):

Actual results / Expected results:
--- snipp ---
--- rpm.spec       2004-09-25 12:55:20.000000000 +0200
+++ rpm.spec.rsc   2004-09-25 12:55:47.000000000 +0200
@@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
 %define        with_python_subpackage  1%{nil}
-%define        with_python_version     2.3%{nil}
+%define        with_python_version     %(%{__python} -c "import sys; print sys.version[:3]")%{nil}
 %define        with_bzip2              1%{nil}
 %define        with_apidocs            1%{nil}

--- snapp ---
Comment 1 Jeff Johnson 2004-09-26 13:33:42 EDT
I am not interested in flexibility, but rather simple and stupid,
as rpm is often the first package that needs to be ported
to a new platform, where, for example, %__python may not
be correctly defined yet.

Note You need to log in before you can comment on or make changes to this bug.