Bug 719082 - Add a %python3_version rpm macro
Summary: Add a %python3_version rpm macro
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python3
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dave Malcolm
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-05 17:27 UTC by Garrett Holmstrom
Modified: 2011-08-18 18:51 UTC (History)
4 users (show)

Fixed In Version: python3-3.2.1-3.fc17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-18 18:51:51 UTC
Type: ---


Attachments (Terms of Use)

Description Garrett Holmstrom 2011-07-05 17:27:11 UTC
Description of problem:
The rpm package provides a useful %python_version macro:
%python_version %(%{__python} -c "import sys; sys.stdout.write(sys.version[:3])")

Could we have a similar %python3_version macro as well?


Version-Release number of selected component (if applicable):
python3-3.1.2-14.fc14.x86_64


Steps to Reproduce:
rpm --eval %python3_version

  
Actual results:
%python3_version


Expected results:
3.1

Comment 1 Dave Malcolm 2011-08-18 18:19:51 UTC
Change committed/pushed to git:
http://pkgs.fedoraproject.org/gitweb/?p=python3.git;a=commitdiff;h=65e90f617be391c7453dd0241e828b9f8f5cf5a1

With this applied locally, I get the following on this F15 box:
$ rpm --eval %python3_version
3.2

Building python3-3.2.1-3.fc17 for dist-rawhide
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=3284119


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